Commit e66b4f4f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Miguel Ojeda

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarRobin van der Gracht <robin@protonic.nl>
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 11b92913
...@@ -391,8 +391,7 @@ static int ht16k33_keypad_probe(struct i2c_client *client, ...@@ -391,8 +391,7 @@ static int ht16k33_keypad_probe(struct i2c_client *client,
return input_register_device(keypad->dev); return input_register_device(keypad->dev);
} }
static int ht16k33_probe(struct i2c_client *client, static int ht16k33_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
int err; int err;
uint32_t dft_brightness; uint32_t dft_brightness;
...@@ -533,7 +532,7 @@ static const struct of_device_id ht16k33_of_match[] = { ...@@ -533,7 +532,7 @@ static const struct of_device_id ht16k33_of_match[] = {
MODULE_DEVICE_TABLE(of, ht16k33_of_match); MODULE_DEVICE_TABLE(of, ht16k33_of_match);
static struct i2c_driver ht16k33_driver = { static struct i2c_driver ht16k33_driver = {
.probe = ht16k33_probe, .probe_new = ht16k33_probe,
.remove = ht16k33_remove, .remove = ht16k33_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment