Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1670831pxa; Thu, 13 Aug 2020 14:19:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylzXUm2RnNEWZ4F4WnuhipE2f46/QaPtkUrrGBWL85yTt++ByipUbiqoBi5w9qJFk9rPO8 X-Received: by 2002:a17:906:5452:: with SMTP id d18mr6826002ejp.163.1597353583760; Thu, 13 Aug 2020 14:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597353583; cv=none; d=google.com; s=arc-20160816; b=C0OgRrtk5VWcWqhuTuBzuSRizBgv33XnEEU8oKhsIpWc+oyY+yqhltKrgwaT2BBZ9q ox0kszByPbudk1u6tAEM41avDY9Ou4tV3Xnz7UXiaFA4PGqCFaQlfACme2sOIHBA2KR5 2jKSaqMPpw2sJFi/uC7+dPpa1lsZuGlIfJIqttUCR/3IZHoowOrrrJZtgaZW7RyprCKo 9VV9aKUfegTAKwWU8kirexc+hvAZuhjYFd+j/mjtqqsoArzR/BpORSTAcPSQXf3V/wah 7zoBYAHXv93ILLLhIJEtcYDUuBZy/zTjxHMDuU/w8VOf5n+6vJs5QmG/zoF8M6XbQ4Qa QHsg== 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=EaEohRCs0rWKVZCkNI1jHc4T9XdlxCXlGO4G6KmTtb8=; b=mhLT10RDYIzymADGFnvft32RSXu9LDK+qk2j0Q8kdIhiz7l4UR5qV60G4HPLAizEge IPyBYLGmISzuy9kRHlOz0zkduEunrag7Xc2lUIYbwqkceHPFSR5EZ4P/kro3osr3Qshi bH0Hjy75FS1jo+bvDOfMJY0cOY1rCo4VLuBKbu/FFXcYkvh96nWI+RsFiKVVHUIv+b6l 3Lh66brC8Jdi5a4Nd93tmFM5XOi+iI90W8LtjXWNPM7B3C7wAGHjV/8+JkWzCU8FYSJs XdYtyFhsYlpUXIaKR3NGyPtTpXYvCyfjUH6oYYFy/lfXip8YeXf33PKjB1Ra/GrcQpiu VvXA== 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 x14si4182312edv.549.2020.08.13.14.19.20; Thu, 13 Aug 2020 14:19:43 -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 S1726591AbgHMVRq (ORCPT + 99 others); Thu, 13 Aug 2020 17:17:46 -0400 Received: from 13.mo4.mail-out.ovh.net ([178.33.251.8]:35529 "EHLO 13.mo4.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbgHMVRq (ORCPT ); Thu, 13 Aug 2020 17:17:46 -0400 Received: from player698.ha.ovh.net (unknown [10.108.57.245]) by mo4.mail-out.ovh.net (Postfix) with ESMTP id 981B0243ED5 for ; Thu, 13 Aug 2020 18:29:03 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player698.ha.ovh.net (Postfix) with ESMTPSA id 19515153540A9; Thu, 13 Aug 2020 16:28:57 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-104R00580418864-beec-4c1f-899a-8232179470aa, E10370F5499BCD549250CF93A1A6372B2A4BB833) smtp.auth=steve@sk2.org From: Stephen Kitt To: =?UTF-8?q?Nuno=20S=C3=A1?= , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] drivers/hwmon/ltc2947-i2c.c: use simple i2c probe Date: Thu, 13 Aug 2020 18:28:51 +0200 Message-Id: <20200813162851.1519546-1-steve@sk2.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7660341492141739393 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdejjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrheileekrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/ltc2947-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/ltc2947-i2c.c b/drivers/hwmon/ltc2947-i2c.c index cf6074b110ae..ad0dfd3efbf8 100644 --- a/drivers/hwmon/ltc2947-i2c.c +++ b/drivers/hwmon/ltc2947-i2c.c @@ -15,8 +15,7 @@ static const struct regmap_config ltc2947_regmap_config = { .val_bits = 8, }; -static int ltc2947_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ltc2947_probe(struct i2c_client *i2c) { struct regmap *map; @@ -39,7 +38,7 @@ static struct i2c_driver ltc2947_driver = { .of_match_table = ltc2947_of_match, .pm = <c2947_pm_ops, }, - .probe = ltc2947_probe, + .probe_new = ltc2947_probe, .id_table = ltc2947_id, }; module_i2c_driver(ltc2947_driver); -- 2.25.4