Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1238384rwl; Fri, 7 Apr 2023 12:10:29 -0700 (PDT) X-Google-Smtp-Source: AKy350aZm6vegZbFftHqVJbl3per+H4yUhoGyAAA3q0L9DsAc94LAAEwRc/EEtZKvtC7UZnYwymd X-Received: by 2002:aa7:9405:0:b0:62e:407:fc69 with SMTP id x5-20020aa79405000000b0062e0407fc69mr3411824pfo.21.1680894629607; Fri, 07 Apr 2023 12:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680894629; cv=none; d=google.com; s=arc-20160816; b=rM9iPntZq+z8iTTQSsCHXCoPkIDBkf+mSWvL39bozLHiNXOsGa10PgaHawb758vGtK 9Um8YbrSz060MoreML8dlY5lmCvlskgfwFDwA0Svi+rp9onJu8rTNcjoFz6syikGxQj3 S75Weqq3YGCtYi8bpCUZPavVjo3NAcJD3E9tTFBFW7zD0qJqnjRUv4rHvSQ7OxE93gsN RXIaGHG2gbmA5uhAjVIxv0AJRpY5+JjhcZm6/hJ8fq0F3RmLPWGeewKn3uSa/NPLQd4T YN5qhY8Q6a16WCtMz+VUk/pmM7JBjVgtm6nP9mOuzommHC23fKDMbhAHfQRzagbWoshe YhNg== 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:dkim-signature; bh=u29Ba3A0btMM/Efd0jQfFxdcE+1OqKc3tXksWr+mPkI=; b=ZNT2TMF+pswynpAZqzVE4ZsmJluGyj6B87iD/lYFd+QngY7zTyF7sWzIvNqNuNQwht Bnn++H/KpM3LnG5b+j9kgdGA0OuC70thEqr5ZzliOLPQ9KR4Qbw9Znpst62U7uUoBb5d v/Wt5x2mt62P1UogAWmY4tHIa9tf/RrwRDy5Joh7ftKsLJ1bA0BAlCJw5o9sa3zHosci 5TWp5E8UFI2Yt+6zuRT/y8vZPJW2Z1hXUk/cr3Ng7U+8plYLkGZ4A4EXb/ah3hEPrptV wIDknPY4a3YtnBGI2Eq9FlQ52wvJSHT9q/Bns32e9WZAiZRw7SuWUriMnEmZLhrx08VD PU1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oLosmmGj; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s127-20020a625e85000000b005a8bd21e2f7si4126271pfb.186.2023.04.07.12.10.09; Fri, 07 Apr 2023 12:10:29 -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=@linaro.org header.s=google header.b=oLosmmGj; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234740AbjDGSxW (ORCPT + 99 others); Fri, 7 Apr 2023 14:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233002AbjDGSxA (ORCPT ); Fri, 7 Apr 2023 14:53:00 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6105AFF00 for ; Fri, 7 Apr 2023 11:50:56 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id l17so10257440ejp.8 for ; Fri, 07 Apr 2023 11:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680893395; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u29Ba3A0btMM/Efd0jQfFxdcE+1OqKc3tXksWr+mPkI=; b=oLosmmGjsDVZsw4n1UPDv7gcUuB3AGv12Lr41gdR0QsSFA6+t09rDFFaXR0mggzPdt cpUI8QklvqOAIsCUOlBnoIPGBksqXhaBsqQ7fG1o0CRpQbk/3n6OeU2Wq23SpX9ERTG0 pzBO4oAnNw1RsPUl+jQ/C3rjOxk3pr0XhH1Fz9d1pkRCv2Uwl0z8KuxTuSD341jhexSl oxk/E4CatmwVokAVISinDpli+aKphx7YRwzgr0Wp7g9U0Uh4q55iuLI8XVixw8jjeopn cV3IGQRhKsgn5cWWH1jRLqWpjImdDLqhouNJEx+W4ky8zs8nS/yevr65/fQO5m0KtAYC hx3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680893395; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u29Ba3A0btMM/Efd0jQfFxdcE+1OqKc3tXksWr+mPkI=; b=RV7P9GAlpVkW236vZKdAKwOAt6gfaNLWe05+1VrtgNxurh6QNHOTCyjclniyqA6d2J XvR6js4G7hnT+yh0fqq5z4ggdP/YXq5YV1g7Ap33aWG3a4OyM9F+PCUlLlbsDy/Of+oR woa4yrgaNCgCPFmtL4uyHLirehF9EN5tx648l7C1MLYlWqIFmYzF5HlLgm1xoopuzcQi cuVUU/45glEDu2neGc5wqcCE0/xzuc/b7QSsGybG//XUSwkOrPSSsRCCqJBZUXdCW5g+ htqArzIuZk9boqp/XK34ztOMSM9dW7ubPiXFe6DR5KLX5k/p7UxiF/0FDmcRU7eSQTNG QCEA== X-Gm-Message-State: AAQBX9fC5m3fFYA6dwQSkY4QblI+LVFgl5NoCM6QCkE6yaMJ1LfPtN/k 4cKTcwHxTBEpAMnQ2n17yC3ZnA== X-Received: by 2002:a17:906:6d3:b0:8b1:2c37:ae97 with SMTP id v19-20020a17090606d300b008b12c37ae97mr366112ejb.43.1680893395164; Fri, 07 Apr 2023 11:49:55 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:b20f:8824:c926:8299? ([2a02:810d:15c0:828:b20f:8824:c926:8299]) by smtp.gmail.com with ESMTPSA id a4-20020a17090680c400b009495db4787esm2293272ejx.222.2023.04.07.11.49.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Apr 2023 11:49:54 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2023 20:49:53 +0200 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: Bart Van Assche , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org References: <20230407150137.79947-1-krzysztof.kozlowski@linaro.org> <59929dca-6d70-c3a2-292b-91f7274dd12e@acm.org> From: Krzysztof Kozlowski In-Reply-To: <59929dca-6d70-c3a2-292b-91f7274dd12e@acm.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 07/04/2023 20:30, Bart Van Assche wrote: > On 4/7/23 08:01, Krzysztof Kozlowski wrote: >> -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 >> }; > > A nit: to me the use of whitespace in this patch does not seem to be > compliant with the Linux kernel coding style. You mean it should be: hwmon_channel_info *const ufs_hwmon_info ? I think the pointer * is tied only to variable name, but not to const. Majority seems to choose similarly: git grep "\*const" | wc -l 2763 git grep "\* const" | wc -l 16204 But if this is more than a nit, but your preference, I can fix it. Best regards, Krzysztof