From patchwork Thu Jan 5 14:19:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Wolf X-Patchwork-Id: 3623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp324953wrt; Thu, 5 Jan 2023 06:24:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXuPGRnS+kx2iWtj9tHoQc+DrEmhNI5WcHgHLV/xAoKkWb+82eNCsg3MBhJATmxTKu88/yEY X-Received: by 2002:a17:906:684b:b0:7c1:29ef:790b with SMTP id a11-20020a170906684b00b007c129ef790bmr43624410ejs.69.1672928646660; Thu, 05 Jan 2023 06:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672928646; cv=none; d=google.com; s=arc-20160816; b=dc1Z8LcfsYAhPKgiw2f9vXfwqDk/n4eAcnPlXOBiqNmYyhnG/N+a5LJXjZaSFAo25E SfcU/y1WBvetD3PhBKg4+kQCB6dc9U2FFP7nsHmdgrgGFZuUuduEwhmJk/DZ420yUaIB vpSTqUsGXkj/5jvhSMuvAovIfmLwSe+aUEML8cHwGAm/8IF70Znujxp1VJ8+SXvqA9qR ZE0L2FqQOWhQQbEnQx4dHjO8ojuLQhbGEMGTSw7J/2wkGs7MY1fIUHteNhxVUIQoSdem yGUlvKhvcNKiC8eKIibWgCCAWSbXtWsItqb1rDprVXo8Wb7/UKN7QvZKxzMVL64/Hsfp nTOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=ThXBR2Ri6cQFVUv2/PmhBV+ZrA92twXOOUe0vJL6C1k=; b=M+kED/2aOnWJF/feaLMFgJuaGYfG0qw2GsR09J0IfvrYo1q+OIQStp9ckW0F1YX/O0 ajxzTE3w1Fnq2WqSw4f8lARVAE7Bca3BVCnzJSJB1va0srzM7ZohedyzPiovyMavHl2W lErKoKU43H62SjVUqDT5E+CvreNm6MdU7cSGpX/VoN/elUz67Ia8PikB0EcyEYaqDrdM ZXgvuQASjtrxxBZo/HI4PfWD7W9ALfkpoBvd24Tk1j8CVvX5aCeYutPBe9ZLmqPI8dJ7 JqlV+nFEFeIT/+AzFlNNQrvKV8feG61U++6WflnOiYUGCV2JtxQlGeUqo/PFWyC0nQG6 9Bqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=RME5plFv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds14-20020a170907724e00b00787bacce740si35971135ejc.537.2023.01.05.06.23.43; Thu, 05 Jan 2023 06:24:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=RME5plFv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbjAEOTh (ORCPT + 99 others); Thu, 5 Jan 2023 09:19:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjAEOTf (ORCPT ); Thu, 5 Jan 2023 09:19:35 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD80DD2D7; Thu, 5 Jan 2023 06:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1672928358; bh=wIz0BoSUc31ugcqNmIKcIFhbT2sYdHTdsIFwKNmgt3c=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=RME5plFvOeHxkPSPC8NUcEWmioeYrtEvMDw1dUjVf5BhO+rEboJlr6WqVZodpvWW/ Ipdu6eGvVU2ic7snqC4PPd7oqkO0YYctlJfIZwsM0nYnUJSRUOB0apyKEF7r9zugkQ OcOWQGizmLnj5Kt4EyxEwUuN+YbVghpJ8qVjFeWfKRfAynl81/J5yNuXtvZUM+g8Ez k7G3ZKkZxic7d+dcIpXLde9TM1M1xq7RmWY9fXnrjLQQeXHD9j545Bp9EMYyWi+veO wsMBHvZw1mjfnK5jB0Iw8Ur7h02vQ7Edkz6rRCABGldAYZbDavLvRfkc0iEVeoD17y 75aFUVvlyAWtw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from esprimo-mx.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MWRVb-1pJhfC3df9-00XqJR; Thu, 05 Jan 2023 15:19:18 +0100 From: Armin Wolf To: jdelvare@suse.com, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Convert to *_with_info() API Date: Thu, 5 Jan 2023 15:19:08 +0100 Message-Id: <20230105141911.8040-1-W_Armin@gmx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:P+VnuccQuxbVylJ/aoMnO10jH2ggKviSZwlBemNMjXUK0KVPsJI jIbaRZJ0o4NMYkbOxYV33FqCy86KGTO3ugcyVzlNT0hVWVqSNLHo+yhVfoMZ2ahcsCBK8ld xQOnuKqiBCAzpFypwBBs5O/4k6twep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n0wfJEhVMmaaX/YXjl Pa3P6MUOO4WDHPhlA5VANpMN2ZE= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754192828219048114?= X-GMAIL-MSGID: =?utf-8?q?1754192828219048114?= This patch series converts the ftsteutates driver to the *_with_info() API, reducing module size by ~30%. The first patch does the actual conversion, while the second patch deals with the nonstandard fanX_source attributes, which are being replaced with the standard pwmX_auto_channels_temp attributes. The last patch adds support for fanX_fault attributes. All patches where tested on a Fujitsu DS3401-B1. Armin Wolf (3): hwmon: (ftsteutates) Convert to devm_hwmon_device_register_with_info() hwmon: (ftsteutates) Replace fanX_source with pwmX_auto_channels_temp hwmon: (ftsteutates) Add support for fanX_fault attributes Documentation/hwmon/ftsteutates.rst | 5 + drivers/hwmon/ftsteutates.c | 550 +++++++++++----------------- 2 files changed, 210 insertions(+), 345 deletions(-) --- 2.30.2