Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2026969rwb; Fri, 12 Aug 2022 10:33:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7i0WTK18IzfZStnxAJaKryatYn2U2P9NlBJn8ilLoDtT2/ygoSgFAqp5azpmdWGHcnhij4 X-Received: by 2002:a17:907:724b:b0:731:48b3:6fed with SMTP id ds11-20020a170907724b00b0073148b36fedmr3400148ejc.405.1660325628774; Fri, 12 Aug 2022 10:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660325628; cv=none; d=google.com; s=arc-20160816; b=kr97unn5pETiF40H0QlNfkcrS45xkVHLjePDC4uL1uAWZLKXJfmqrWLuieWVcX0JKb uALK7YJqDL673BrcMN87ajOk4il/FHlq9WISFz8YRP5iv+i3wJws7AoiexCYZ4t9lVbd nq1OKrHMA1Ibl7VF0C12yuBhthDLwe3SB4cNsuzPNbPd9jS4f5NoYss/eW5IN3qxALcd nZmTIWZUufw2vBFEtPHE4hhSFMZ1z0h0/flG8jndDZw3VQp/7PmCI+rQ198pi5YJySEM KSKCmPi0PSbUMy+F5a4Iw/CrI+n3lmwfINXqY/BAajQMupfG/ngdb94gFcRMvH1DsXyq epzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=eWXwqhgdPV1eTqKNnJQ+Ha5K6D1MKORyyBt4mURjNrM=; b=T7sbzxlmNoXiHP7EnK/QaDvhrTTlcyXmjpIoxytOHUmbGLYunQCpQOhH2ycxoKFQaf fEi+iDCslkCoz0Bb2LWdN/vHxfM4xkZylfaRR7gBCx42/nZOD/INC/ZebwqznFtGOjvf WaX70kdLf/Z1lBlUxmqQglP8/ubmragV3QnOun+Pj4jqiQxEqXGp+gwSd10GMM+WGvIr Q4VbAch0tZbz/Cc6a1CSsP7r5WvrDpGax4zwfn7tA6wTcsTc5ooZ08IFZKjo583ykToh ndb5qrV03xhZ8bLw7CkQV8+FmZhzC+wrBx5x+HnXbvlBKDbb6A9oKMCPS/ULZVDr68ov to5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=HxwwIYCz; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a50fc0c000000b0043de558914asi2192105edr.487.2022.08.12.10.33.22; Fri, 12 Aug 2022 10:33:48 -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=@sberdevices.ru header.s=mail header.b=HxwwIYCz; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238421AbiHLRPh (ORCPT + 99 others); Fri, 12 Aug 2022 13:15:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234019AbiHLRPe (ORCPT ); Fri, 12 Aug 2022 13:15:34 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A7F76A4B6; Fri, 12 Aug 2022 10:15:32 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id C74905FD07; Fri, 12 Aug 2022 20:15:30 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1660324530; bh=eWXwqhgdPV1eTqKNnJQ+Ha5K6D1MKORyyBt4mURjNrM=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=HxwwIYCzaqSnF3otq8qXX6bd095sQtfpl9hVBF0XApCRm/XHNyHePuYll5ruLa57t dvhJY/Zfwx4Ag3PPbJ6oQv3vPHn20M9IYXoKCx7JYTVo5MTurpV0qKtjHC0geMq7xC Br2ETjqfXVzs2tnyHBUXlhaP76sxz+Eh/zPa2LqOJO86MXiMfP8r5Z6sGYArd3cwSF AkpcH7qZ0sItcBiza1/VgfBzotanjjUKIFUbA3fDDn/IEyPHoGqjKdO5RBSWZP5SLv 0kQFjF6rBRB3L3RT457bTBkJmVLSupCveJ+krDDjms8ZDl29EU0Qsj2XBwK0xe9u5/ aElLADejzqOzw== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mail.sberdevices.ru (Postfix) with ESMTP; Fri, 12 Aug 2022 20:15:30 +0300 (MSK) From: Dmitry Rokosov To: "andriy.shevchenko@linux.intel.com" , "andy.shevchenko@gmail.com" CC: "linux-iio@vger.kernel.org" , "akpm@linux-foundation.org" , "jic23@kernel.org" , "robh+dt@kernel.org" , "christophe.jaillet@wanadoo.fr" , "stano.jakubek@gmail.com" , "shawnguo@kernel.org" , "stephan@gerhold.net" , "daniel.lezcano@linaro.org" , "wsa@kernel.org" , "lars@metafoo.de" , "Michael.Hennerich@analog.com" , "jbhayana@google.com" , "lucas.demarchi@intel.com" , "jani.nikula@intel.com" , "linus.walleij@linaro.org" , kernel , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v5 1/7] lib/string_helpers: Add str_read_write() helper Thread-Topic: [PATCH v5 1/7] lib/string_helpers: Add str_read_write() helper Thread-Index: AQHYrmvlXLMGJM4ctk2gw8SerH637a2rTxcA Date: Fri, 12 Aug 2022 17:15:00 +0000 Message-ID: <20220812171526.anjszroov76z4hrt@CAB-WSD-L081021.sigma.sbrf.ru> References: <20220812165243.22177-1-ddrokosov@sberdevices.ru> <20220812165243.22177-2-ddrokosov@sberdevices.ru> In-Reply-To: <20220812165243.22177-2-ddrokosov@sberdevices.ru> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/08/12 13:28:00 #20103614 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hello Andy, Please be informed, I've patched commit msg a little bit, replaced 'retun' misstyping to 'return'. On Fri, Aug 12, 2022 at 04:52:25PM +0000, Dmitry Rokosov wrote: > From: Andy Shevchenko >=20 > Add str_read_write() helper to return 'read' or 'write' string literal. >=20 > Signed-off-by: Andy Shevchenko > Signed-off-by: Dmitry Rokosov > --- > include/linux/string_helpers.h | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/include/linux/string_helpers.h b/include/linux/string_helper= s.h > index 4d72258d42fd..9e22cd78f3b8 100644 > --- a/include/linux/string_helpers.h > +++ b/include/linux/string_helpers.h > @@ -126,4 +126,9 @@ static inline const char *str_enabled_disabled(bool v= ) > return v ? "enabled" : "disabled"; > } > =20 > +static inline const char *str_read_write(bool v) > +{ > + return v ? "read" : "write"; > +} > + > #endif > --=20 > 2.36.0 --=20 Thank you, Dmitry=