Message ID | 20220703154232.55549-1-andriy.shevchenko@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E23CC433EF for <linux-arm-kernel@archiver.kernel.org>; Sun, 3 Jul 2022 15:43:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kkOwseQYif4zjfrvTnlobWP3c4rUhfFF1WGf8aYsXjo=; b=vqaCCXwEF77PDK NQsHhVd2HbV4V249V5l3B3gn6MTT1lwWIm/bIalLuCaPxJ5YpCBeawizvwknPelVXynVnw2CMrb4c VZcLxajVgbfg4bi134A45NYbcGLYTuexKVOCGJrf6U7BEMRhXTpbRGkGof9cx68lgccMX62BUqMXV xvRlA1lqlfhTS4makKhE1LjAeQMzDaySkrS3PPJEc3alBIAqMOgiAH3xllPhnjhLq6jMJKqvhqx2L V2yhNJBVNHgC4EqlF24k3RZsWXxv6vqUIJlX1FX11+P4KykRnZgRR9ERN1JB+YJ3RtEs9RJUUYuSo 8ame6ghJdgFZoaaHAMbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o81k4-00Gwjn-Tv; Sun, 03 Jul 2022 15:42:37 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o81k2-00Gwfq-6f for linux-arm-kernel@lists.infradead.org; Sun, 03 Jul 2022 15:42:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656862954; x=1688398954; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PSyqYyC0J2kJSoqRvHgJQSUMUuLg3p+H4Cjpxh3d8gQ=; b=J3YKq/pzl3HzSnynxALdWCPuS1kMYcJPOpc46TKJm4De5Hfd+6RB4ZF9 UTw00nCNyfD+4Ey5s7XbFlTgv+Mrs14Ylhl4N5NmHtg1HLOFsTD0s3sgO 23EvtHVeInsGhepKwHNN2LdTt8qpeks92bSPVo5Q4PQhMxcDELGcHj0iW Fl4lIasfocBxwrCxOSJHCBV+4Orgu15T1yIUrtkNlGK65yUbWLMm1RtUG xeeplpYugbi7awcWiOePhz2F+2WNuqu1wKjv5/jfi94teRDYNhGu9AwMw ks7Pf6ZKHz4pT4zIC0ODBKkP5/XyRUJIIgYbT0OnrM4q1zR7urKTBYsX4 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="281719772" X-IronPort-AV: E=Sophos;i="5.92,241,1650956400"; d="scan'208";a="281719772" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2022 08:42:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,241,1650956400"; d="scan'208";a="596759636" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 03 Jul 2022 08:42:27 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id CF93111D; Sun, 3 Jul 2022 18:42:33 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Wolfram Sang <wsa+renesas@sang-engineering.com>, Michael Walle <michael@walle.cc>, Krzysztof Kozlowski <krzk@kernel.org>, Sam Protsenko <semen.protsenko@linaro.org>, Lucas De Marchi <lucas.demarchi@intel.com>, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 1/2] lib/string_helpers: Add str_read_write() helper Date: Sun, 3 Jul 2022 18:42:31 +0300 Message-Id: <20220703154232.55549-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220703_084234_303194_4DCFE34C X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>, Wolfram Sang <wsa@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Till Harbaum <till@harbaum.org>, Alim Akhtar <alim.akhtar@samsung.com>, Codrin Ciubotariu <codrin.ciubotariu@microchip.com>, Claudiu Beznea <claudiu.beznea@microchip.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[v2,1/2] lib/string_helpers: Add str_read_write() helper
|
expand
|
diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.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"; } +static inline const char *str_read_write(bool v) +{ + return v ? "read" : "write"; +} + #endif
Add str_read_write() helper to retun 'read' or 'write' string literal. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- v2: no changes include/linux/string_helpers.h | 5 +++++ 1 file changed, 5 insertions(+)