Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1127658pxv; Fri, 25 Jun 2021 06:08:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVyucaK47KMhdGaZ5gCTWe3MWjNsjEJrWvVmRzngRhuXvFTo0u9I2pAlIzYSqE8bLbN1cv X-Received: by 2002:a05:6402:524e:: with SMTP id t14mr3378479edd.236.1624626481100; Fri, 25 Jun 2021 06:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624626481; cv=none; d=google.com; s=arc-20160816; b=dt5m5F9zQmvd9C1oZeC6LzscocZB69QXk+N25jSbanxQLewsvhXDgJ4B4G8yXTFmN5 bfiE8nqIvm3P9z+9qf5DaXYkqFIUghxTPS6aEDZdA1y/VRHYj/f/9kAH2HnwnbJbMQvn f4aDDd1UGojVyRNiI0IBR897IpkngD9+Sn1kBSbPxKnCv439+2Yv0Jy8I57/KKCmEfTr 65Rcn6J6XaClJQoVyJu+RhWUlKdjeoyQisvFOp2Xcn+FXVZUGriPLUfAOfL1o2RmPZPA h1+wx/XgEBTxMbOuqFrocO2RvwopLNievg9cIbI9kDyea0IJYFLN1nxcdOLFEq1/7FOK dlIg== 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=Y1gRjTIW9VGQ1vZ8i58XzvpUOmDqXB9weD2dU4Le1VE=; b=d2fPdWgf9cQV+7rPmL15TSnoMYGdrV6XhqsLkGKBQBRhm+1Y/PpUT07ebVPmM8ipJ7 jtY6z5F8sACHHt5SKtZR2KpaysIKjB9IIBMo4pH+NuXqIb3mx1U18ekUQRor7ncswpW5 RVX9bp7ea3YZnRrROuyVB8+VgOsoDMmrYDeadrmhnIRGQfqrBmhjgYiKYpwzG1L03F/A IJt6bfxdvIhC98iKOCXOtKcJqvwODr72GAKgG+WMi+9UuA+EmZAvX+rFaHrjDjZOi07w NskxoVYcZgvaNHYjyWrxkn6PfJslKxoSp6a0ZfhyD6CJ4HrMtE78ZqntQsleLGFFqDdR 3p2g== 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 3si5580507ejm.82.2021.06.25.06.07.32; Fri, 25 Jun 2021 06:08: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 S231453AbhFYNI6 (ORCPT + 99 others); Fri, 25 Jun 2021 09:08:58 -0400 Received: from newton.telenet-ops.be ([195.130.132.45]:39144 "EHLO newton.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231354AbhFYNI5 (ORCPT ); Fri, 25 Jun 2021 09:08:57 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by newton.telenet-ops.be (Postfix) with ESMTPS id 4GBHBp1kbhzMr22n for ; Fri, 25 Jun 2021 14:59:14 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:1476:ce84:e216:add8]) by baptiste.telenet-ops.be with bizsmtp id MQzC2500j2B1U9901QzD7X; Fri, 25 Jun 2021 14:59:14 +0200 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 1lwlQO-003TMO-G5; Fri, 25 Jun 2021 14:59:12 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lwlQN-004sRH-Nc; Fri, 25 Jun 2021 14:59:11 +0200 From: Geert Uytterhoeven To: Robin van der Gracht , Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , Pavel Machek Cc: devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 12/18] auxdisplay: ht16k33: Convert to simple i2c probe function Date: Fri, 25 Jun 2021 14:58:56 +0200 Message-Id: <20210625125902.1162428-13-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210625125902.1162428-1-geert@linux-m68k.org> References: <20210625125902.1162428-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 Acked-by: Robin van der Gracht --- 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