summaryrefslogtreecommitdiff
path: root/drivers/auxdisplay
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2021-10-19 17:45:12 +0300
committerMiguel Ojeda <ojeda@kernel.org>2021-10-22 00:36:29 +0300
commite66b4f4f52793a745b802acea77394ebcf8ff619 (patch)
tree13775f3d37217f58160b92ec81bb0d02a4c5d97c /drivers/auxdisplay
parent11b92913d1cafeca5bc7c398bf6075dd00e0b8a7 (diff)
downloadlinux-e66b4f4f52793a745b802acea77394ebcf8ff619.tar.xz
auxdisplay: ht16k33: Convert to simple i2c probe function
ht16k33_probe() does not use the passed i2c_device_id, so the driver can be converted trivially to the new-style of i2c probing. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Robin van der Gracht <robin@protonic.nl> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r--drivers/auxdisplay/ht16k33.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c
index 1ce73c4172c8..d0d7b55059aa 100644
--- a/drivers/auxdisplay/ht16k33.c
+++ b/drivers/auxdisplay/ht16k33.c
@@ -391,8 +391,7 @@ static int ht16k33_keypad_probe(struct i2c_client *client,
return input_register_device(keypad->dev);
}
-static int ht16k33_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int ht16k33_probe(struct i2c_client *client)
{
int err;
uint32_t dft_brightness;
@@ -533,7 +532,7 @@ static const struct of_device_id ht16k33_of_match[] = {
MODULE_DEVICE_TABLE(of, ht16k33_of_match);
static struct i2c_driver ht16k33_driver = {
- .probe = ht16k33_probe,
+ .probe_new = ht16k33_probe,
.remove = ht16k33_remove,
.driver = {
.name = DRIVER_NAME,