Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1476726pxa; Thu, 13 Aug 2020 09:15:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk7JwA7yiUNljORQE+Ry65ASCKjlA5EmDtRg/aQ99IrPIR8aLY8vb0z1dzLH80FG32a8rZ X-Received: by 2002:a17:906:ce37:: with SMTP id sd23mr5746444ejb.272.1597335338269; Thu, 13 Aug 2020 09:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597335338; cv=none; d=google.com; s=arc-20160816; b=Xy4G/Ino69lODp0Xo7kd3p6oTOY5KtrJ26M7bq/23GZBVBsj9+y1kwjqqTB4RgZ/R8 X131OmeAYuGFx+IOkMh/xx9lEWqi5D+L7WkCzwZJsNmDFDK7dvtJ4v+c/D0cIpzY9tAJ vN2V5DfFLU04Q18Z7rbpg4kA6UfjuOuFM0MkF7icoNSWYlcJESFoenh9q0e47b2+9ttw r3t6E5SacTQNdOnvIl75e9uT1yaYZlh2+PsseFl+tSM3WMKwzoUicJ/ebJ6R2+eH+PxS trPrB5Hto5gtrinyrGHdJ8iFgsfbgeSdr0ZyuBcpiIxy6SS7hHKS4mfHjRf0qpaMjOhK RLsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ivuPPUYT8PYu2dgxTSuSdOgy7D2LirhS8asyZ6AXxUk=; b=YcjjWGYcTzZdHx5laUHmE086HQFdTZ/4v8NAA3PiGn8iBp7TddIm0F7w/rdlYvNxBn Urqpa6kLnMMKIdZkg/jgOGthDZo8b1FTAb4/XEHhMb5Gk+7veTlQaLJDXGCITrTEyFhu ocVjktXkF73S1I53S1LCjAibzKNiohuVAptSEdk9trqPa+d61RUdl8TCEO2NpEuBrtte H3Vrr4xnr4mvMi6R5gc0xaZL4xYDFo+A8tKrS1JKlLBQ0zcGM6Fn09o5jjvJDjFF38yd liFiqybXbGAl4xuzMYIFpRkYD6Q0JlVxcsU9gBfkdrAC2EUDWqhr7CaeKv73pWN4HKM8 17JA== 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 d13si3630590ejd.721.2020.08.13.09.15.15; Thu, 13 Aug 2020 09:15:38 -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 S1726691AbgHMQLq (ORCPT + 99 others); Thu, 13 Aug 2020 12:11:46 -0400 Received: from 3.mo179.mail-out.ovh.net ([178.33.251.175]:47641 "EHLO 3.mo179.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbgHMQLq (ORCPT ); Thu, 13 Aug 2020 12:11:46 -0400 Received: from player695.ha.ovh.net (unknown [10.110.115.164]) by mo179.mail-out.ovh.net (Postfix) with ESMTP id 5AD17174A43 for ; Thu, 13 Aug 2020 18:11:44 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player695.ha.ovh.net (Postfix) with ESMTPSA id EC379151D566A; Thu, 13 Aug 2020 16:11:38 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-97G001b2f9ce33-f6d4-4c70-bb8b-6fa00e0852d7, E10370F5499BCD549250CF93A1A6372B2A4BB833) smtp.auth=steve@sk2.org From: Stephen Kitt To: Corentin Labbe , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] drivers/hwmon/adm1029.c: use simple i2c probe Date: Thu, 13 Aug 2020 18:11:29 +0200 Message-Id: <20200813161129.1507599-1-steve@sk2.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7367888994139721059 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdejfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrheileehrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver doesn't use the id information provided by the old i2c probe function, so it can trivially be converted to the simple ("probe_new") form. Signed-off-by: Stephen Kitt --- drivers/hwmon/adm1029.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c index f7752a5bef31..50b1df7b008c 100644 --- a/drivers/hwmon/adm1029.c +++ b/drivers/hwmon/adm1029.c @@ -352,8 +352,7 @@ static int adm1029_init_client(struct i2c_client *client) return 1; } -static int adm1029_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adm1029_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct adm1029_data *data; @@ -390,7 +389,7 @@ static struct i2c_driver adm1029_driver = { .driver = { .name = "adm1029", }, - .probe = adm1029_probe, + .probe_new = adm1029_probe, .id_table = adm1029_id, .detect = adm1029_detect, .address_list = normal_i2c, -- 2.25.4