Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1880702rwd; Sun, 28 May 2023 04:22:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jM2FWq218M1QqsZLUubbEBQRGhR41U0hkhP4FpQR1WQPb9l7i+GdeiRwoUFBcsUYeitGf X-Received: by 2002:a17:902:d510:b0:1af:ddef:f605 with SMTP id b16-20020a170902d51000b001afddeff605mr10697008plg.65.1685272952314; Sun, 28 May 2023 04:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685272952; cv=none; d=google.com; s=arc-20160816; b=wHPe3kMz3UqIs5GZBZtxbJPGYgiadZTZTs551/i4oAdQni7Ys/0I5We58esZPKIO/L +oo6KhMdLmZ4w/XMwsYcpAw580UHthhADaJMzlbM9RZ86NngS4bczKE2jHlpb8mQPG4g ivG1mHHhZz1SLmdhSArHxjrjWfuSCuekIAcX6XdcO0D6+bxaaIeqZNhcthLQxvbEZPVk EAY0q5OQ2kSGYLBkR9FhIaoIx6rDLHq79DB1iXkxYHXDzkKtH3C6LnHeYxPF7pkpvHB6 vYsU2f1yFKqwN/zv4rdDwucNPOplQKa3+Amm6rFogYGWZm/Lxe6SpbbmBbybNT9kjb9Y rYDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wlSiH7ibr720YJalyapRigGM9oLx+2C22UbRyD/tAaE=; b=AvBiLcBJGdX5tYKWDxrDkpGcxWDgJt/yaqD0gtoguPbBRpZHfMEZQmgsa6mfsm0wpG 3xZK7go30/rG6RvOSQy/9ho2W2VaIzWhit7y1iwSLYE49reY/EAg+OoyIu9xu6z+x9Fx LZTLtPptXPYMVQJkQXWKKyuHyK3txL0SyckMRnCc+HBg5B/9u8HgTWtlD9cY5Gef64UK 4Nl7wg4dvf4DSd5omhvc8z/HwuAfeA/jCDby1ElFCy5HMHxf19rc4/Mk6wpQlHImcXLT 78BjNjb+PdCd+7f288EwGs+0Z3Lswns41HysPO8S9AhQ1CqncsW5Y26cmq9K3Vn60xR9 +Ehg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MkLAA19t; 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 y18-20020a170902ed5200b001b02bd00c67si1863921plb.324.2023.05.28.04.22.19; Sun, 28 May 2023 04:22: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=MkLAA19t; 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 S229521AbjE1Kz2 (ORCPT + 99 others); Sun, 28 May 2023 06:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjE1Kz1 (ORCPT ); Sun, 28 May 2023 06:55:27 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2484BA4; Sun, 28 May 2023 03:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685271327; x=1716807327; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7eBapmwuatu6STYCyR03YSp8av2m5gocW5nmyIw8UN4=; b=MkLAA19tQguLWfm3OL8TULjst3lFcrhC1I/gIw96fHtx7iaacpvLrWMM 4KMwJYtq3d33+Aewzkzak3xSnOgZu2j0p9HkBQ8D2liZgxCbn0eJAiSLk TeXFrBTo34ZnOSBUX/1MCWwVz9utqKqdzHq15Xz4MRtvPcVJbHg0SD+d2 dUuLXeQKGi7v/B1VU53GZ/PUroYU33GrENPfjgUzXxNdtqXyMP1z3U5lY ZgsoPE1pLfE7T00ckHpYB/Jzkc6r6iKf9lWCV7YMtRlOdWTPbKUUMO/78 7G+Gm4KnuVv9ktWU3L+esL+gUKC9NO+h3RrNKDp4flbKZjddY+Wst1Aa0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10723"; a="334128150" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="334128150" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 03:55:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10723"; a="656162961" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="656162961" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP; 28 May 2023 03:55:22 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q3E3U-000Jjw-1S; Sun, 28 May 2023 13:55:20 +0300 Date: Sun, 28 May 2023 13:55:20 +0300 From: Andy Shevchenko To: George Stark Cc: jic23@kernel.org, lars@metafoo.de, neil.armstrong@linaro.org, khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, nuno.sa@analog.com, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, kernel@sberdevices.ru Subject: Re: [PATCH v2] meson saradc: add iio device attrib to switch channel 7 mux Message-ID: References: <20230527214854.126517-1-gnstark@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,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 Sun, May 28, 2023 at 01:46:37PM +0300, Andy Shevchenko wrote: > On Sun, May 28, 2023 at 12:48:54AM +0300, George Stark wrote: ... > > +static const char * const chan7_vol[] = { > > + "gnd", > > + "vdd/4", > > + "vdd/2", > > + "vdd*3/4", > > + "vdd", > > + "ch7_input", > > +}; One more thing to discuss (Jonathan, what's your opinion?) I think the following easier to understand and has less problematic characters in the names (in case of sysfs direct use from shelll): static const char * const chan7_vol[] = { "gnd", // alternatively GND "0.25vdd", // alternatively 0.25_vdd, 0.25Vdd, 0.25_Vdd "0.5vdd", "0.75vdd", "vdd", // Vdd "ch7_input", }; That said, my personal preference: static const char * const chan7_vol[] = { "GND", "0.25Vdd", "0.5Vdd", "0.75Vdd", "Vdd", "ch7_input", }; -- With Best Regards, Andy Shevchenko