lkml.org 
[lkml]   [2021]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 12/18] auxdisplay: ht16k33: Convert to simple i2c probe function
    Date
    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>
    ---
    v2:
    - Add Acked-by.
    ---
    drivers/auxdisplay/ht16k33.c | 5 ++---
    1 file changed, 2 insertions(+), 3 deletions(-)

    diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c
    index 8c9acc4800bc94e0..8c1689b77db95676 100644
    --- a/drivers/auxdisplay/ht16k33.c
    +++ b/drivers/auxdisplay/ht16k33.c
    @@ -381,8 +381,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;
    @@ -523,7 +522,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,
    --
    2.25.1
    \
     
     \ /
      Last update: 2021-06-25 15:06    [W:3.863 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site