Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4068599pxf; Tue, 23 Mar 2021 01:33:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuRiB7wwd2QkQeHYOK2+tKV9x+MWr4kFKKCUnoTAFXTgm4GayZb98J905JewHLFvgaxwU4 X-Received: by 2002:a17:907:211b:: with SMTP id qn27mr3789964ejb.203.1616488394534; Tue, 23 Mar 2021 01:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616488394; cv=none; d=google.com; s=arc-20160816; b=nfMqg5V8Q6bcyHwDQWgplUbit0RI7r9janPDfJQODtIJQmWae/njn3ylLfejhhvLLf yAgBmq1CoFpqkUkXAd2iCF2LzBzjSqM2r0DYX7kZwFlhUUn6U731GUpbwlNqKnywRL0F yJvtaUplp/Odvu60FzaTNOCT90qFrEIBKDfUUcOQ8MwkvxIPS8vc/lSCZIiZ7/dHqomw I2JjZPKbUO0KGwyQ1Jq2fdFiVz5iG6RiXHBrkZOtDb81h1pDB483O/xdZJ0HemOnFKVG Yk4Kp/j+JiXBqx6P5gJXOOFJs/jbpZG0d+2/1a9vth6tBWhiR3s4nhPbEXEqGxprpYcw 1Dzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :message-id:user-agent:references:in-reply-to:reply-to:subject:cc:to :from:date:mime-version; bh=DsfOjtZEwZtwwzSo8ypQtSyUbjB8Mgjz9c3SqkSkYl8=; b=qoe28muosbO28L+NRZy9NyGPYY2Spc3/c66e0X0WLwjgBjjzgKlNrx8S46FrNytfxY w+W5jmQ59w8ktP93cN929ZeTZCJ9RcW0i74mAzoTyH1ppb+HgLZBo+ocbQ/Cy4/8CHXD S8MbbNRsW1C0V5/SsQztRKBbc49O+c9mH2RA4ZzpDdTYF/9YwcW1A1yBAbOOEX/eQgv2 KoIQ+ycmmJozQz5x71XvxKgAHW2kYzsnzBd/PsUpp3cVeUWU7COW6THF7sU+zrSgjRuM RGVa1G/mvz4qDvluCWcckQGTjQD6ZXC5932Ecn4o9VpuN3GdFhGZrcL7Wz9Wxeh84M70 5/xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc12si13475077edb.241.2021.03.23.01.32.51; Tue, 23 Mar 2021 01:33:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbhCWIbt (ORCPT + 99 others); Tue, 23 Mar 2021 04:31:49 -0400 Received: from protonic.xs4all.nl ([83.163.252.89]:60274 "EHLO protonic.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbhCWIbQ (ORCPT ); Tue, 23 Mar 2021 04:31:16 -0400 Received: from fiber.protonic.nl (edge2.prtnl [192.168.1.170]) by sparta.prtnl (Postfix) with ESMTP id 92ED044A022C; Tue, 23 Mar 2021 09:31:14 +0100 (CET) MIME-Version: 1.0 Date: Tue, 23 Mar 2021 09:31:14 +0100 From: robin To: Geert Uytterhoeven Cc: Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/17] auxdisplay: ht16k33: Convert to simple i2c probe function Reply-To: robin@protonic.nl In-Reply-To: <20210322144848.1065067-12-geert@linux-m68k.org> References: <20210322144848.1065067-1-geert@linux-m68k.org> <20210322144848.1065067-12-geert@linux-m68k.org> User-Agent: Roundcube Webmail/1.4.8 Message-ID: X-Sender: robin@protonic.nl Organization: Protonic Holland Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-22 15:48, Geert Uytterhoeven wrote: > 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 > --- > 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 13d18f218b4d196e..1b67f38109bddba8 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, Acked-by: Robin van der Gracht