Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2253891pxu; Mon, 7 Dec 2020 01:20:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBK6+2C1y4PnebwGFKQ7b8un7LMhteCTMtYZrhLeAoztMu9uJ3/cFll30Jv69QG/7pfzht X-Received: by 2002:aa7:c856:: with SMTP id g22mr3488208edt.85.1607332836340; Mon, 07 Dec 2020 01:20:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607332836; cv=none; d=google.com; s=arc-20160816; b=uh/5hE+uAvNvxiH2UlyfJXDb7HYe6ZEGfhFEz0XkdpJuLapijwo7N6ZoL6wMpYTKID AB9JZumnm5d2fUjnPppNMf8KTJo490CP9RN6idbgwiw5FnPOgOOz3X+ZCQ276bdQUklX +/VEccchL50R6DCPjArpIpGapVDjXuc9JBuivFO5fGC0wyZcZ8StAfUwFUxBfZbXRJHf 71QaK2Q7+lX50exyx+MdpgxWHkKnKQewNy/nL1bHc3wg5bSAbEcaC5We+f5XZLztIxuk /L76Jeoh5GwNASVm/enlaR6Mm1KLZ8vVK5eU3Fy4ZQrtagxRjUoYFrlYAcocvY1/Nkoq KvXA== 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 :ironport-sdr:ironport-sdr; bh=bemuOnM6PX3fj/biNAsRYKQQfvMwNWcGSXkNPVE91Zk=; b=YUU8V3elcqwX4L7XxNTvZ+G/JqzB1CPgFp5MYw915EknxBSTxYerDMFhTYJVhI5Xtw vzivtuycXF+qRJ2aSukyhbLNWueu9chdRHSfb+Neckixj71Re0gX43/bevZrs3Vzpz3L j9r+sRKsJmWNThw9TYXrYBXIwMxBDK+CW9G8jPFJX+bMIDNdtGo/1spwcgFtLJdp3ey6 xpM+q0L8sc7E1a3dVT8P9VWlqlZOCPE52baN11fsYrEXxsIUhUkTyhYB5+dmZoBShq+h AljBF8+rKT3/hAReoHuUZeSSUwRRv2wlHRLu/lY4iZ6CLMOrQnPjAYoKX7wmhN+RXfbR 7J1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si7916766edy.201.2020.12.07.01.20.13; Mon, 07 Dec 2020 01:20:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgLGJRy (ORCPT + 99 others); Mon, 7 Dec 2020 04:17:54 -0500 Received: from mga03.intel.com ([134.134.136.65]:46647 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbgLGJRx (ORCPT ); Mon, 7 Dec 2020 04:17:53 -0500 IronPort-SDR: vMfIdAdxiMG5efIEpiiBUkNMVazLmcfdNhIi9QC6zgt/JuBplUMGwVk1kd6LsczAHXOvx9V2ZY VWZO+SlLiwfg== X-IronPort-AV: E=McAfee;i="6000,8403,9827"; a="173778411" X-IronPort-AV: E=Sophos;i="5.78,399,1599548400"; d="scan'208";a="173778411" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2020 01:17:15 -0800 IronPort-SDR: TjpiBIKrylNnjVtgm1EAK6M4FiEAvC48pRag6nyWqm/Kn3+nOkUFjvZVacfRES/olOe4juyInf KQKiQgF2epwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,399,1599548400"; d="scan'208";a="317046397" Received: from host.sh.intel.com (HELO host) ([10.239.154.115]) by fmsmga008.fm.intel.com with ESMTP; 07 Dec 2020 01:17:14 -0800 Date: Mon, 7 Dec 2020 17:18:18 +0800 From: "Ye, Xiang" To: Jonathan Cameron Cc: jikos@kernel.org, srinivas.pandruvada@linux.intel.com, linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] iio:Documentation: Add documentation for hinge sensor channels Message-ID: <20201207091818.GA23419@host> References: <20201203035352.13918-1-xiang.ye@intel.com> <20201203035352.13918-4-xiang.ye@intel.com> <20201205160540.22d2b8d5@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201205160540.22d2b8d5@archlinux> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan Thanks for review and comments. On Sat, Dec 05, 2020 at 04:05:40PM +0000, Jonathan Cameron wrote: > On Thu, 3 Dec 2020 11:53:52 +0800 > Ye Xiang wrote: > > > Add channel description for hinge sensor, including channel label > > attribute and raw data description. > > > > Signed-off-by: Ye Xiang > > --- > > Documentation/ABI/testing/sysfs-bus-iio | 17 +++++++++++++++++ > > 1 file changed, 17 insertions(+) > > > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio > > index df42bed09f25..82303b1bdff0 100644 > > --- a/Documentation/ABI/testing/sysfs-bus-iio > > +++ b/Documentation/ABI/testing/sysfs-bus-iio > > @@ -1802,3 +1802,20 @@ Contact: linux-iio@vger.kernel.org > > Description: > > Unscaled light intensity according to CIE 1931/DIN 5033 color space. > > Units after application of scale are nano nanowatts per square meter. > > + > > +What: /sys/bus/iio/devices/iio:deviceX/in_anglY_raw > > +KernelVersion: 5.12 > > +Contact: linux-iio@vger.kernel.org > > +Description: > > + Angle of rotation for channel Y. Units after application of scale > > + and offset are radians. > > This entry is already mostly in the doc around line 200, just without the index. > Please just add the What: line to that block to reduce repetition. > If you want to add... "Where present, Y indexes the channel." or something like > that feel free. When adding in_anglY_raw to in_angl_raw block, Should I update the KernelVersion form 4.17 to 5.12? Like blow: What: /sys/bus/iio/devices/iio:deviceX/in_angl_raw What: /sys/bus/iio/devices/iio:deviceX/in_anglY_raw KernelVersion: 5.12 Contact: linux-iio@vger.kernel.org Description: Angle of rotation. Units after application of scale and offset are radians. Where present, Y indexes the channel. > > > > + > > +What: /sys/bus/iio/devices/iio:deviceX/in_anglY_label > > +KernelVersion: 5.12 > > +Contact: linux-iio@vger.kernel.org > > +Description: > > + Optional symbolic label for channel Y. > > + For Intel hid hinge sensor, the label values are: > > + hinge, keyboard, screen. It means the three channels > > + each correspond respectively to hinge angle, keyboard angle, > > + and screen angle. > > Makes sense to keep this block separate given the additional info provided. > Alternative would be to add it to the one with in_voltageY_label which would > be odd given what follows! Ok, Then I will keep the in_anglY_label block here. BTW, I didnot see in_voltageY_label in sysfs-bus-iio in current kernel master branch. > > Thanks, > > Jonathan > Thanks Ye, Xiang >