Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1420702rwl; Fri, 7 Apr 2023 16:08:03 -0700 (PDT) X-Google-Smtp-Source: AKy350YpNPN+pgQsTTnq48hQYBfHCtXMXYUWsto/EX05/fBWgkMwoMT42Q2q0PouG97ekhNRSVhl X-Received: by 2002:a17:903:1389:b0:19d:611:2815 with SMTP id jx9-20020a170903138900b0019d06112815mr4098700plb.42.1680908883089; Fri, 07 Apr 2023 16:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680908883; cv=none; d=google.com; s=arc-20160816; b=CHzYp/4dvDOz3TcsIsngT5QREK2aesHKsNK8/f5UdoPHhjQbDFhXpENRStpPy2qigl MtK12MMXqjKnd9GguZFATnl4kvmMZXHM+2wKG90pWu2s+D6UxgNUjTPXyvdxW7ZBWp52 N5OHugcf5kSfZ/pTcYZpmKtDXNPgRdC/Rk8oO5waKTSY3k+rdSiwZ0xbogj+NOHgBXWL 9AsR97OpHUEKIluLngPkYMzG97L9/271fZH+qdPbXAXcvJht/cP7LFfW/knvcJKv9j31 urhk/fDOngI9DonERL0EQGi89DN4XCh/w5zXKhf5XAs6uelEA+oFHehKd2KyGhefh41G fpuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=vMcypocImtzxV7/I2Ii8yYYnZJvG/LB86W8XaeGMbZM=; b=SRauJZJ+S0/ycAQnNFY3k9UH0OCNXnVx71No9+omzq7udf7Fe1CQBa8asfzpAMBvpI k1aozXw1qhnDBWDFZP1Pgi07H5Dvcg6kweaeiDjdheWwWx4c7BaDuP25l0oD5tj/Be7U uTGomevQ11yLmdT1VTUS+e8Wph6J3rw+u12OjnEhTQAPkvZl2VOa3Fh/Jy0Fm5zeeQBr vhrZfV1bZe7+YHgFNq5oEdizmYELJYvMcq5V4Sb3IyYs4womMf4Ahl0eiDjCR360H7XP /c1EtIlGXYcwKH8vt9KtrW5BVJKEOXPdY2FVnTxfiGzXBSjinRiD42pvlgU4plPsSmdu XoqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lNtMX+r+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a65480c000000b0050fb412dcc2si4555723pgs.380.2023.04.07.16.07.46; Fri, 07 Apr 2023 16:08:03 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=lNtMX+r+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbjDGXHS (ORCPT + 99 others); Fri, 7 Apr 2023 19:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjDGXHO (ORCPT ); Fri, 7 Apr 2023 19:07:14 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE593E068; Fri, 7 Apr 2023 16:07:00 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1842cddca49so89035fac.1; Fri, 07 Apr 2023 16:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680908820; x=1683500820; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=vMcypocImtzxV7/I2Ii8yYYnZJvG/LB86W8XaeGMbZM=; b=lNtMX+r+lAJIRIONbfqfkdV6kfPHZTkpNge7zneGuDWyEbLDVDyOYoEZaDcZ9ROM7P dSXA5E3eLn3PgNaHdGCSyLzHsfGfnIRtHi7CNQGP4NNZ0GCp0ZSHK7OuKILbqHgBUE2g 6tkdxkO/h4392GCiSryc3DXUNoRhqNviE+OcVPPjXYR5aXwKwYbJPvmliVm6bzqA6A2B lYMsGQZeQa1anMDlUsDndgNTJBugCkilBMl4sgcstwoMJrDSmssGYGoixan9Gv1Rk/1A jeTWKt2epVN1tMuqvnOAIj+1kpdFolWz8YMqi43AJiEzE9xMqklNTn/5ZBCQmJCM9bCZ f8ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680908820; x=1683500820; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vMcypocImtzxV7/I2Ii8yYYnZJvG/LB86W8XaeGMbZM=; b=y9MvvtsSc1wlVE3HHZuSdKqfdxHKKkvOG884erPSRT+voagGPV8QDQLjqeWbE5cVID 2Ja1AUiKbvZO09O1N0vAFOO2t2p/WwtgfYqSVY/n1QaXI7ABnyJXlrSdl6UzyeaCxalL JUUgg3JXyhGGyGOC1wc/+JDYCGg0RobfpGCRSGedY+YkUBzJnROMLGReL3CvA+EN/bpu y5Op7fQqpLzrKrwqJpaT1SRzTZjxNlg8LoxQKpf8IhPG2jmuQ4l+UnZWcV1JzZZMVD1X cpu7xZlQkijPjIZpjqBBz8WCb7vFWVtpS9KFYuKmgz6JWzmx/fs/1LDtBItI3L7sXdG5 t+wA== X-Gm-Message-State: AAQBX9ffq7JTgVeRqBGDqtOkscxnxposkqqGZL/fMbtmBAdkU9xJdrLS VWT5POInBsoPqr74a5imVZU= X-Received: by 2002:a05:6870:e38c:b0:17a:c141:ffdc with SMTP id x12-20020a056870e38c00b0017ac141ffdcmr2213638oad.58.1680908820130; Fri, 07 Apr 2023 16:07:00 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 5-20020a4a0d05000000b0053b543b027bsm2069448oob.42.2023.04.07.16.06.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Apr 2023 16:06:59 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Fri, 7 Apr 2023 16:06:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] ufs: hwmon: constify pointers to hwmon_channel_info Content-Language: en-US To: Krzysztof Kozlowski , Alim Akhtar , Avri Altman , Bart Van Assche , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jean Delvare , linux-hwmon@vger.kernel.org References: <20230407150137.79947-1-krzysztof.kozlowski@linaro.org> From: Guenter Roeck In-Reply-To: <20230407150137.79947-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 4/7/23 08:01, Krzysztof Kozlowski wrote: > Statically allocated array of pointed to hwmon_channel_info can be made > const for safety. > > Signed-off-by: Krzysztof Kozlowski > > --- > > This depends on hwmon core patch: > https://lore.kernel.org/all/20230406203103.3011503-2-krzysztof.kozlowski@linaro.org/ > > Therefore I propose this should also go via hwmon tree. > I am not going to apply patches for 10+ subsystems through the hwmon tree. This can only result in chaos. The dependent patch is available at git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-const or wait until after the next commit window to apply this patch. Thanks, Guenter > Cc: Jean Delvare > Cc: Guenter Roeck > Cc: linux-hwmon@vger.kernel.org > --- > drivers/ufs/core/ufs-hwmon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ufs/core/ufs-hwmon.c b/drivers/ufs/core/ufs-hwmon.c > index 4c6a872b7a7c..229e2ad70903 100644 > --- a/drivers/ufs/core/ufs-hwmon.c > +++ b/drivers/ufs/core/ufs-hwmon.c > @@ -146,7 +146,7 @@ static umode_t ufs_hwmon_is_visible(const void *_data, enum hwmon_sensor_types t > return 0; > } > > -static const struct hwmon_channel_info *ufs_hwmon_info[] = { > +static const struct hwmon_channel_info * const ufs_hwmon_info[] = { > HWMON_CHANNEL_INFO(temp, HWMON_T_ENABLE | HWMON_T_INPUT | HWMON_T_CRIT | HWMON_T_LCRIT), > NULL > };