Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3499904pxf; Mon, 22 Mar 2021 07:52:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/kS2zjuC4ONFV3fEzVcu7poZNtqqx6a+D3n3KhRtH2CtRbUoWdazOThjKoMcHGQBSwDDF X-Received: by 2002:a17:906:81c9:: with SMTP id e9mr131746ejx.456.1616424721795; Mon, 22 Mar 2021 07:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616424721; cv=none; d=google.com; s=arc-20160816; b=R6KkEBBy3M0AcAqo6JmyqGjWgjb33Ab4jiDUs1sDL61OjiOWz0nSnz+DGYqM6u2VRF QJX4zHTCW9CoyL6/wYfYC0gmZkLA2GyjRpyTeRm3M92UJOZui7cOkuUkjqAx/CrogUjL SxDyHaCtzFdMzkUZikFl+5+DlF5CizK1RsNJY9/V7z93KOEABGLwkeVU4NQ7wYA787vS tnplNXCKuHdC9cN1+u6nXcLt6n1b0qf7LUahhba228OBYV60Vzxks2/LZ6hInpgEHLOh cbg119SsEghsRB7mKhviAMrE9f5SM5zIQDGrb6tbNHZAtq9R4oJW0Aik7E/t+Z8SMPKz JXbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XfJ/S93FpKILVHAsDkuvSI5iT65NMf1Hf/7L9/ZvwvU=; b=T+3U60jbYydF7TH+epkcpbpIEVtfQ4AyOPLKEkME7PI7jmgMf8KfDATfplVo8bE8Fc 11zMcGvFdWw9OOl8xaoIRsO0gDJMcEUwsY80Yz01reR1h1elUz9C8DopVi14Qrus/pPO jHnlcA7L/EojoXjrENqt7KknaNgJPh6SUJiq6sbIyotOZCxi2i7C390cESSkJT1wHGe+ UlnV6NaFk8MOE+cE4+9tu+mfOCnUsKSFrWDcEhyDdAYC+hxtH5yKCEVzxdwntaC/0/6P SetXdzC4kvSvX4VZn/27gNygBn/R8HmcFuXq9tCZvaf/W0f4pbEgDtJXu2/xa4io/A8/ g/tA== 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 cw18si11191141edb.142.2021.03.22.07.51.39; Mon, 22 Mar 2021 07:52:01 -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 S231269AbhCVOtq (ORCPT + 99 others); Mon, 22 Mar 2021 10:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbhCVOs7 (ORCPT ); Mon, 22 Mar 2021 10:48:59 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6A82C061786 for ; Mon, 22 Mar 2021 07:48:54 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:250b:f16c:c5e2:505d]) by laurent.telenet-ops.be with bizsmtp id jSot2400L2HDxaV01SotgE; Mon, 22 Mar 2021 15:48:53 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lOLrQ-009ZWM-OA; Mon, 22 Mar 2021 15:48:52 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lOLrP-004T6Q-Pp; Mon, 22 Mar 2021 15:48:51 +0100 From: Geert Uytterhoeven To: Robin van der Gracht , Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 11/17] auxdisplay: ht16k33: Convert to simple i2c probe function Date: Mon, 22 Mar 2021 15:48:42 +0100 Message-Id: <20210322144848.1065067-12-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210322144848.1065067-1-geert@linux-m68k.org> References: <20210322144848.1065067-1-geert@linux-m68k.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.25.1