Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1000960rdg; Fri, 11 Aug 2023 06:57:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEozeHLRVEP5BAkm5xqFGXEKROopd4Mt8qXJhnVqu2tIWMg8TTUzVnv+qE4yzCIECfhbbAU X-Received: by 2002:a17:907:6095:b0:974:fb94:8067 with SMTP id ht21-20020a170907609500b00974fb948067mr7155483ejc.23.1691762252659; Fri, 11 Aug 2023 06:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691762252; cv=none; d=google.com; s=arc-20160816; b=HzXFjade/iZ3sl1arjxBW8+1dEvGZ6GSBKsZGA05lSnN/HecIJhH+8ZiByZQnWjGTu LEucVJB454xyHhHZBdBRZqRoZFB2IqqHDs48HDyFWc1JDragggH3sgVdcolVQt1hw4ef L8M0DNnUMnQrQ3/kL/bdpwPgmll/YKvNMUH7b3JFMWibVZDmF08bKSS5a3vc3h6wiEpW sAwF+YDy+9LYPJeL+YRsf0gxPV/MOgs+AsjWulDWDVe7umjnxgOImWw3lCvf3oasocf+ lYiosq2SZH2GepOGNAeCgOlhY3mEG276DUs8qicIdcpXQ0PR7e2N2ubG6KM8Gduaxvpr /awA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=yjgeMlsdJI5kFX2g8hSsDxMlZvX2B4XAEdr6dI6do4M=; fh=iGcOaKCf6WEpDoChgoM2SSdiJuuSHO1ZgXxj/Q1ktms=; b=ZJaRG8AITS1i76O28ixf7nVBm5GM9j0Idb0V3ymeOwrl48OZIdkr7IZQF0CUsltmLZ k4ghKVhCyBnNu9wq/PALW4OuHhHIenKUMe63VaHjzYb3J7gM7IncfEMlyIidT+wPHgEu 3X5p1BAC/PMZ5adNJCKGx/z2xhzqeBhGNEcdldWCFjuSLo25hvWhKarYkK+qQZrkat01 mpsVuuGabkmt9oHNBqoCwZX5w7SvSi2IUepZZ6ZNCW5hezftTLMxCcRkM/GUJGiQN9Ko r9t6n5RdRyF/m0jJ4NzQ4mlUUqy01CIsbi+hJXbA5RjnV2/+D6H6bpX7vwVLB4RwzaQO /iQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SeIJURKK; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m24-20020a170906849800b009980c2658e0si3506482ejx.763.2023.08.11.06.57.07; Fri, 11 Aug 2023 06:57:32 -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=@intel.com header.s=Intel header.b=SeIJURKK; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234841AbjHKNOO (ORCPT + 99 others); Fri, 11 Aug 2023 09:14:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234751AbjHKNON (ORCPT ); Fri, 11 Aug 2023 09:14:13 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA641270F; Fri, 11 Aug 2023 06:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691759653; x=1723295653; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=DqlutKDFR+edpFN90YKfv+7uoSGtCYEEKq4YBuFZQSA=; b=SeIJURKK1QkinR4OL07QpMSY0amBYCeB7p9gyxOp+vZCxV4LiR/54jbB AWpW3ycXHdlpqzR30ifOqDQBS9MsSMCsmagpfNp1e88q/jR68pW+wrr1U 9ECj7BmeZK3O446p1vkqKHGp/5MFuxAB2ROuymskfFVAdvfVNCtv7/U27 F5gGb48CPMk3FGP/7q43tmMFB8VcllOVztIKRT/sxXvj5RMZokY9FmcV3 HD5w9Yj75JEC/jn/U5d2x0UqxEKIdeAO/dRUcvIa9IdjAy/808V48dMR1 ia4GPIhGJaH4c+v8mX/vc/8zd7lFBRXlqpKCYxnxB0JwVdPdgkmR341Tn Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="369145177" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="369145177" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 06:14:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="846802058" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="846802058" Received: from aberko-mobl1.ger.corp.intel.com ([10.252.51.87]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 06:14:11 -0700 Date: Fri, 11 Aug 2023 16:14:08 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Andy Shevchenko cc: Hans de Goede , Shyam Sundar S K , Muhammad Usama Anjum , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Gross Subject: Re: [PATCH v1 1/1] platform/x86/amd/pmf: Use str_on_off() helper In-Reply-To: <20230811131330.71263-1-andriy.shevchenko@linux.intel.com> Message-ID: <3c7dde60-e6a8-1729-4ace-9768d331c2d0@linux.intel.com> References: <20230811131330.71263-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1649411613-1691759652=:50003" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1649411613-1691759652=:50003 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Fri, 11 Aug 2023, Andy Shevchenko wrote: > We have a common helper to represent a boolean value as "on"/"off" > string. Use it for the sake of the unified style. > > Signed-off-by: Andy Shevchenko > --- > drivers/platform/x86/amd/pmf/cnqf.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/platform/x86/amd/pmf/cnqf.c b/drivers/platform/x86/amd/pmf/cnqf.c > index 539b186e9027..bc8899e15c91 100644 > --- a/drivers/platform/x86/amd/pmf/cnqf.c > +++ b/drivers/platform/x86/amd/pmf/cnqf.c > @@ -8,6 +8,7 @@ > * Author: Shyam Sundar S K > */ > > +#include > #include > #include "pmf.h" > > @@ -399,7 +400,7 @@ static ssize_t cnqf_enable_store(struct device *dev, > amd_pmf_set_sps_power_limits(pdev); > } > > - dev_dbg(pdev->dev, "Received CnQF %s\n", input ? "on" : "off"); > + dev_dbg(pdev->dev, "Received CnQF %s\n", str_on_off(input)); > return count; > } > > @@ -409,7 +410,7 @@ static ssize_t cnqf_enable_show(struct device *dev, > { > struct amd_pmf_dev *pdev = dev_get_drvdata(dev); > > - return sysfs_emit(buf, "%s\n", pdev->cnqf_enabled ? "on" : "off"); > + return sysfs_emit(buf, "%s\n", str_on_off(pdev->cnqf_enabled)); > } > > static DEVICE_ATTR_RW(cnqf_enable); > Reviewed-by: Ilpo J?rvinen -- i. --8323329-1649411613-1691759652=:50003--