Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1763097pxp; Mon, 7 Mar 2022 01:43:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyr0/fVQw2WkJM0Y8dP5C8GvIoAwHx5lecaixXl3IworihXSmNVcq9yoI6VTrmWw9ztswTA X-Received: by 2002:a17:906:9b95:b0:6db:38fc:5ff4 with SMTP id dd21-20020a1709069b9500b006db38fc5ff4mr1021625ejc.114.1646646208332; Mon, 07 Mar 2022 01:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646646208; cv=none; d=google.com; s=arc-20160816; b=ko2YPHcu6qw/kfSNWqxUfWiEBdFGatIkm3mw85c8U656LqotELLgB8UvsgBy7Rm9v1 p8yYTf5uj9ua4btJ8c1dajweBDTZM/IeVooUYQx4GvP8qVL3hGpOpRM2i+FR8TqutCqY wqOWGJVJrvcKkrFdaoc9JahE6gOaCG3UumgFY2QiDgYoVaSOR4X9JY60ylFOP0qN/JT2 Akd4UlhX6/CrbVgvu9nY7vEsvyn9h5MjXuwEcywKOS7zJehDHnmuFw4kUch+VC7QUnBf FvaIi0uibXqfkUkol+FUAKkRA8haFCRF19kUFDYpROM2sRqMPeNv+TMKY1gID42i8zul OHEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=KSv9QIsbfJiXaQGiCs/s147I977dhsO/G6YBwREearQ=; b=ofoXTuQzHuD6wN5BsjZS3WO+B6Z/N/jAxZqIGHxIaOwPSve/YNB9pcjUlw7bLIIC3J IeeePH0MQ6mAidxM7cc0SVGBQGalN42vqIyKpS7KJ1nzfUdaOGl5d54uaZHdnBldSdhz 93AfkMUcd1O9tSYuPNSUvKKXUA2gDl+qWle00IqPYzxshNophFVMgmakLa8koThX8LAW Pim4Y6r3Baibx6P7yTiSfpVS/Od21VO9TfDKEFlRdQcgsYQ8muz2wIfQ1nnI0rEtK5i3 9KoMR7WFgrpF/zDwu78LKa3hnJ/ZKHBDAKl91xJgPDnZjzkPFy+QDTQE08xcuunyNfj6 DQNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GnoeXDKS; 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 d7-20020a50ea87000000b00410b60d95d9si8474173edo.271.2022.03.07.01.43.06; Mon, 07 Mar 2022 01:43:28 -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=@linaro.org header.s=google header.b=GnoeXDKS; 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 S235356AbiCGFyz (ORCPT + 99 others); Mon, 7 Mar 2022 00:54:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233216AbiCGFyx (ORCPT ); Mon, 7 Mar 2022 00:54:53 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABE1D5A09F for ; Sun, 6 Mar 2022 21:54:00 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id c16-20020a17090aa61000b001befad2bfaaso12691373pjq.1 for ; Sun, 06 Mar 2022 21:54:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KSv9QIsbfJiXaQGiCs/s147I977dhsO/G6YBwREearQ=; b=GnoeXDKSBlOj0dhadpOgL+mFjtabPoQW/YITgrVBmaIFj0cW7156yGSR5Jw/Z4zL+z GTzWkX6zfKHZikSLY93sxT22xyWpbKlLagtuawmYCz7SjIH1+fOCqs9hlfSDiaOMNr4X GBHwF59iAzBRfbSWYz0ILrF14PAPfFyQ81bBPqsqyWZGth0DUTae7YO2Lsp5DKEeVhIl QQjSF2zNo/yqlIJBERJ7pt/3ZRYqf87ZskcxarjXPlPqNeOVpZafjVr9i9fFQdxp+jnr iXSsXgEIaEYNref588SmFpBluFCAlPOWeWiimAGNj3Oyc719H2fdl6JQPwo30kUn23pg UK3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KSv9QIsbfJiXaQGiCs/s147I977dhsO/G6YBwREearQ=; b=i7hCgC3pJD6jBvmnzxiGoypTsmwb+tQ6b47xKTqenIIXYLiEbjE+6zAYbZDmT5WUYz gIaiG2f1S+R249pGWqp3dzfkZfY6q6EAGe3/MY7QGj4yhhxKV16IPr9i8FNgQpLR8aXc QAqFKLPvogqc86Eth0GIl5GfGg7hWyEeOTJSDZ1PtEfweQYfvOHH+pm2wtyiTO9Xbw/0 8HfvqTk+aI8UxOS1C4g/u7hb+8dmHxnMeo5XZ+E1n5ekH7g7QleXI+g0ExE85DVK44MB lNqEylaUSgVtVT5l3YUIgmxalfeuKOVT/fn6IQh0TsE0lHsPwfb//RsYf7YCfsN2gt/r 4a2g== X-Gm-Message-State: AOAM532NSLf22qxHMOq3ijWHxtYijPqwHxI4Xgl+KweEVrcYCc/ICV2R 8mVEOuM5cTOKomEZLBA+503MhWgMt/Qxcw== X-Received: by 2002:a17:902:e5d1:b0:151:df53:1a5f with SMTP id u17-20020a170902e5d100b00151df531a5fmr6116020plf.134.1646632440222; Sun, 06 Mar 2022 21:54:00 -0800 (PST) Received: from localhost ([223.184.83.228]) by smtp.gmail.com with ESMTPSA id m79-20020a628c52000000b004f6f249d298sm3448363pfd.80.2022.03.06.21.53.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 21:53:59 -0800 (PST) Date: Mon, 7 Mar 2022 11:23:58 +0530 From: Viresh Kumar To: zhanglianjie Cc: "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cpufreq: unify the show() and store() styles of attr Message-ID: <20220307055358.cmehf5odv4lo3sdx@vireshk-i7> References: <20220306021250.64315-1-zhanglianjie@uniontech.com> <20220307053931.kkhnxrujljynp5cz@vireshk-i7> <62259d22.1c69fb81.5ba55.5efaSMTPIN_ADDED_BROKEN@mx.google.com> <20220307055216.gh3aiivz7o3tvomr@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220307055216.gh3aiivz7o3tvomr@vireshk-i7> User-Agent: NeoMutt/20180716-391-311a52 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 07-03-22, 11:22, Viresh Kumar wrote: > On 07-03-22, 13:50, zhanglianjie wrote: > > Usually /sys directory under the file, the corresponding Attribute contains > > .show and .store, and their naming style is filename_show() and > > filename_store(). But all naming style in 'cpufreq' is show_filename() and > > store_filename(), So you need to change naming style. > > This is something that is present within the kernel and not exposed to > userspace. I don't see why we would need to make this change and what > good it brings. > > I would have supported this if cpufreq itself had different names, but > for this one, No. Or is it that you want to reuse __ATTR_RW() and __ATTR_RO() and the current naming doesn't allow you that ? I will let Rafael take a call on that. -- viresh