From patchwork Thu Apr 6 20:29:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13204125 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 166D7C76196 for ; Thu, 6 Apr 2023 20:31:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239087AbjDFUbT (ORCPT ); Thu, 6 Apr 2023 16:31:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjDFUbS (ORCPT ); Thu, 6 Apr 2023 16:31:18 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8554349CC for ; Thu, 6 Apr 2023 13:31:16 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id lj25so4206194ejb.11 for ; Thu, 06 Apr 2023 13:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813075; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6Cj6dH8SQdnU185Yyyy6Om9VdNmKCPrXJ/wOeykSuMs=; b=taN5aF85T0o4DOEA7zGLC9x48hE/Ll4x8ZFWRhnpOle/x0WjymESe4p4Z14BHa4S9c uw7oNg/Q29YXzTtqcl9Czi8nNczbJMDfMKL24RxQLPQ4i7gS2T3RgrLsNbgbf+VAwqnm kCTb7lsCxP9ItySfzSsSSg9XA7o/XysqdOeSgmklm8S772pjBQT+JEFaumzsPFB7Z7Kq ttNNTzWPBGiJpGKT0WSXACkCsMquvcdtgYxpUaltczVIRYNkiqm57VeXX06xfnl++FmI gmxj3nq/pcX+gvNwXJxO0eKcWnKI5uuzQyY9KAyvy8nG+tI3TfEqTkyzFK+8IztYVtiX M02w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813075; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6Cj6dH8SQdnU185Yyyy6Om9VdNmKCPrXJ/wOeykSuMs=; b=GLoGc1m0ysh/eZjpVCCU4VhONv0tI9kg+YRq/Vex/mZkimX9U5wWUbyQXAGgdyVYa/ E4D98RFYNlAHs1414jfyd9X/wrwRjYCXPg20RA3VWUSz8NSfmr4o03ke5JMviivp/Y5V 1OsBhQzesGiWZoXGPiUWmxMCd2Q48A4K6JWO+cbUKcfRvOYkJeX5CQP/yU0UUHCJnz1m tIX1A9oTjGM1dURflk/znEpSDnmwUfm8J+jSd2jxYoSY5UCKgIZeWtfynOoYS76E0iQ/ s3E1kRW0jNfKFKdtIAlQQgbxSUadk1rxn+uTmbhNwt90/xlAX4hPse6gw6fHXCv+lLrZ GjXQ== X-Gm-Message-State: AAQBX9dZJcxcipLpWgjSmaNaRsPgZtXghtpc+vW386lcJAqdqRrrt1Tz re0KBI3JMXKcwwxA1MluChoO1w== X-Google-Smtp-Source: AKy350aYtbUbdh6UH+nAWn66ZLqv4AwXcyRo/pi+U+xLfe5lXoD+dmiqBL9fEc9v7hXlsmZb2JD7bg== X-Received: by 2002:a17:906:c795:b0:922:8fc9:d235 with SMTP id cw21-20020a170906c79500b009228fc9d235mr6270842ejb.9.1680813074873; Thu, 06 Apr 2023 13:31:14 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed]) by smtp.gmail.com with ESMTPSA id s4-20020a1709067b8400b0092bea699124sm1210330ejo.106.2023.04.06.13.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:31:14 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Jonathan Corbet , Oded Gabbay , Michael Hennerich , Aleksa Savic , Jack Doan , =?utf-8?q?Nuno_S=C3=A1?= , Marius Zachmann , Wilken Gottwalt , =?utf-8?q?Pali_Roh=C3=A1r?= , Jean-Marie Verdun , Nick Hawkins , Xu Yilun , Tom Rix , Clemens Ladisch , Rudolf Marek , Charles Keepax , Richard Fitzgerald , Ibrahim Tilki , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Jonas Malaco , Aleksandr Mezin , Derek John Clark , =?utf-8?q?Joaqu=C3=ADn_Ignaci?= =?utf-8?q?o_Aramend=C3=ADa?= , Iwona Winiarska , Florian Fainelli , Broadcom internal kernel review list , Hans de Goede , Michael Walle , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Agathe Porte , Eric Tremblay , Robert Marko , Luka Perkov , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, patches@opensource.cirrus.com, openbmc@lists.ozlabs.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 00/68] hwmon: constify pointers to hwmon_channel_info Date: Thu, 6 Apr 2023 22:29:55 +0200 Message-Id: <20230406203103.3011503-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Hi, The first patch constifies the hwmon_channel_info pointers in the core, so all the drivers can be updated - all patches here depend on the first one. If the approach is fine, I will later update other subsystems. Best regards, Krzysztof Krzysztof Kozlowski (68): hwmon: constify pointers to hwmon_channel_info hwmon: adm1177: constify pointers to hwmon_channel_info hwmon: adm9240: constify pointers to hwmon_channel_info hwmon: adt7411: constify pointers to hwmon_channel_info hwmon: adt7470: constify pointers to hwmon_channel_info hwmon: adt7x10: constify pointers to hwmon_channel_info hwmon: aht10: constify pointers to hwmon_channel_info hwmon: aquacomputer: constify pointers to hwmon_channel_info hwmon: as370: constify pointers to hwmon_channel_info hwmon: axi-fan: constify pointers to hwmon_channel_info hwmon: bt1-pvt: constify pointers to hwmon_channel_info hwmon: corsair: constify pointers to hwmon_channel_info hwmon: dell-smm: constify pointers to hwmon_channel_info hwmon: drivetemp: constify pointers to hwmon_channel_info hwmon: emc2305: constify pointers to hwmon_channel_info hwmon: ftsteutates: constify pointers to hwmon_channel_info hwmon: gxp-fan: constify pointers to hwmon_channel_info hwmon: i5500_temp: constify pointers to hwmon_channel_info hwmon: ina238: constify pointers to hwmon_channel_info hwmon: ina3221: constify pointers to hwmon_channel_info hwmon: intel-m10-bmc: constify pointers to hwmon_channel_info hwmon: jc42: constify pointers to hwmon_channel_info hwmon: k10temp: constify pointers to hwmon_channel_info hwmon: k8temp: constify pointers to hwmon_channel_info hwmon: lan966x: constify pointers to hwmon_channel_info hwmon: lm75: constify pointers to hwmon_channel_info hwmon: lm83: constify pointers to hwmon_channel_info hwmon: lm95241: constify pointers to hwmon_channel_info hwmon: lm95245: constify pointers to hwmon_channel_info hwmon: lochnagar: constify pointers to hwmon_channel_info hwmon: ltc2947: constify pointers to hwmon_channel_info hwmon: ltc2992: constify pointers to hwmon_channel_info hwmon: ltc4245: constify pointers to hwmon_channel_info hwmon: ltq-cputemp: constify pointers to hwmon_channel_info hwmon: max127: constify pointers to hwmon_channel_info hwmon: max31730: constify pointers to hwmon_channel_info hwmon: max31760: constify pointers to hwmon_channel_info hwmon: max31790: constify pointers to hwmon_channel_info hwmon: max6620: constify pointers to hwmon_channel_info hwmon: max6621: constify pointers to hwmon_channel_info hwmon: max6650: constify pointers to hwmon_channel_info hwmon: mc34vr500: constify pointers to hwmon_channel_info hwmon: mcp3021: constify pointers to hwmon_channel_info hwmon: mlxreg: constify pointers to hwmon_channel_info hwmon: nct7904: constify pointers to hwmon_channel_info hwmon: npcm750-pwm: constify pointers to hwmon_channel_info hwmon: ntc_thermistor: constify pointers to hwmon_channel_info hwmon: nzxt: constify pointers to hwmon_channel_info hwmon: oxp-sensors: constify pointers to hwmon_channel_info hwmon: peci: constify pointers to hwmon_channel_info hwmon: powr1220: constify pointers to hwmon_channel_info hwmon: raspberrypi: constify pointers to hwmon_channel_info hwmon: sbrmi: constify pointers to hwmon_channel_info hwmon: sbtsi_temp: constify pointers to hwmon_channel_info hwmon: sch5627: constify pointers to hwmon_channel_info hwmon: sht4x: constify pointers to hwmon_channel_info hwmon: sl28cpld: constify pointers to hwmon_channel_info hwmon: smpro: constify pointers to hwmon_channel_info hwmon: sparx5-temp: constify pointers to hwmon_channel_info hwmon: sy7636a: constify pointers to hwmon_channel_info hwmon: tmp102: constify pointers to hwmon_channel_info hwmon: tmp103: constify pointers to hwmon_channel_info hwmon: tmp108: constify pointers to hwmon_channel_info hwmon: tmp464: constify pointers to hwmon_channel_info hwmon: tmp513: constify pointers to hwmon_channel_info hwmon: tps23861: constify pointers to hwmon_channel_info hwmon: w83627ehf: constify pointers to hwmon_channel_info hwmon: w83773g: constify pointers to hwmon_channel_info Documentation/hwmon/hwmon-kernel-api.rst | 6 +++--- drivers/accel/habanalabs/common/hwmon.c | 2 +- drivers/hwmon/adm1177.c | 2 +- drivers/hwmon/adm9240.c | 2 +- drivers/hwmon/adt7411.c | 2 +- drivers/hwmon/adt7470.c | 2 +- drivers/hwmon/adt7x10.c | 2 +- drivers/hwmon/aht10.c | 2 +- drivers/hwmon/aquacomputer_d5next.c | 2 +- drivers/hwmon/as370-hwmon.c | 2 +- drivers/hwmon/axi-fan-control.c | 2 +- drivers/hwmon/bt1-pvt.c | 4 ++-- drivers/hwmon/corsair-cpro.c | 2 +- drivers/hwmon/corsair-psu.c | 2 +- drivers/hwmon/dell-smm-hwmon.c | 2 +- drivers/hwmon/drivetemp.c | 2 +- drivers/hwmon/emc2305.c | 2 +- drivers/hwmon/ftsteutates.c | 2 +- drivers/hwmon/gxp-fan-ctrl.c | 2 +- drivers/hwmon/hwmon.c | 4 ++-- drivers/hwmon/i5500_temp.c | 2 +- drivers/hwmon/ina238.c | 2 +- drivers/hwmon/ina3221.c | 2 +- drivers/hwmon/intel-m10-bmc-hwmon.c | 10 +++++----- drivers/hwmon/jc42.c | 2 +- drivers/hwmon/k10temp.c | 2 +- drivers/hwmon/k8temp.c | 2 +- drivers/hwmon/lan966x-hwmon.c | 2 +- drivers/hwmon/lm75.c | 2 +- drivers/hwmon/lm83.c | 2 +- drivers/hwmon/lm95241.c | 2 +- drivers/hwmon/lm95245.c | 2 +- drivers/hwmon/lochnagar-hwmon.c | 2 +- drivers/hwmon/ltc2947-core.c | 2 +- drivers/hwmon/ltc2992.c | 2 +- drivers/hwmon/ltc4245.c | 2 +- drivers/hwmon/ltq-cputemp.c | 2 +- drivers/hwmon/max127.c | 2 +- drivers/hwmon/max31730.c | 2 +- drivers/hwmon/max31760.c | 2 +- drivers/hwmon/max31790.c | 2 +- drivers/hwmon/max6620.c | 2 +- drivers/hwmon/max6621.c | 2 +- drivers/hwmon/max6650.c | 2 +- drivers/hwmon/mc34vr500.c | 2 +- drivers/hwmon/mcp3021.c | 2 +- drivers/hwmon/mlxreg-fan.c | 2 +- drivers/hwmon/nct7904.c | 2 +- drivers/hwmon/npcm750-pwm-fan.c | 2 +- drivers/hwmon/ntc_thermistor.c | 2 +- drivers/hwmon/nzxt-kraken2.c | 2 +- drivers/hwmon/nzxt-smart2.c | 2 +- drivers/hwmon/oxp-sensors.c | 2 +- drivers/hwmon/peci/cputemp.c | 2 +- drivers/hwmon/peci/dimmtemp.c | 2 +- drivers/hwmon/powr1220.c | 2 +- drivers/hwmon/raspberrypi-hwmon.c | 2 +- drivers/hwmon/sbrmi.c | 2 +- drivers/hwmon/sbtsi_temp.c | 2 +- drivers/hwmon/sch5627.c | 2 +- drivers/hwmon/sht4x.c | 2 +- drivers/hwmon/sl28cpld-hwmon.c | 2 +- drivers/hwmon/smpro-hwmon.c | 2 +- drivers/hwmon/sparx5-temp.c | 2 +- drivers/hwmon/sy7636a-hwmon.c | 2 +- drivers/hwmon/tmp102.c | 2 +- drivers/hwmon/tmp103.c | 2 +- drivers/hwmon/tmp108.c | 2 +- drivers/hwmon/tmp464.c | 2 +- drivers/hwmon/tmp513.c | 2 +- drivers/hwmon/tps23861.c | 2 +- drivers/hwmon/w83627ehf.c | 2 +- drivers/hwmon/w83773g.c | 2 +- include/linux/hwmon.h | 2 +- 74 files changed, 82 insertions(+), 82 deletions(-)