Received: by 10.223.176.5 with SMTP id f5csp1220376wra; Wed, 31 Jan 2018 03:10:53 -0800 (PST) X-Google-Smtp-Source: AH8x227Qf0NRGUJQgihtXxZi1aRsXb4RndYylT5m6Hv4oGqQ/AoEjjQjNXxmlAyRVaTgM9YyNO9E X-Received: by 2002:a17:902:9683:: with SMTP id n3-v6mr27606942plp.177.1517397053421; Wed, 31 Jan 2018 03:10:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517397053; cv=none; d=google.com; s=arc-20160816; b=fT2r/IzFqfpIV3fYnWoA3Xshe9Edxc/Ca+7NV7FSU8Xr6Ntvk4Wq0gdeAa1wB0pxJq YqR2j9GRp0L1l1oGWQZEhz1LhwkDwsnrcwoM41wrzmadwyE0ShkAa+Ti7x4C+/9+Pt1V ecJBIt4JFfAi6JdkfwnAKy4b0qCOOAmesQa8H1qW88+g25zwoLD/i11wQg/jx9CSInjh Q5s5EQEuKMVHhpb3EcWnfPjiemos27R7+L7xMehMCYnwbKY/B9+IWyzoWo86ATeRQJMW TujN4tFgi6m/bf7UDDzRvXJ1HsKO/6qntD5XbTOA0AGUQ0j5RR+pI34X9F5qmzbllYVp +WGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Gvc2gnMMHf9jCblnewkjE5KII1pRvmnIsokuLlAsJYU=; b=RsC+wtd43p6+q7gDbYcgxSmgQSmDZE3Y23eTpNRqowbQ3VsjbaLe4ABndCZY3Y1Z98 wslimHAzI+nwi29Q7/i7trREW0F5rve/XlXPxBFFQSz7lNZF5lX+AXUlHYK9Dn0SP4ZG zcujAMKwaCb8WOSwabsZma9/2q/uxTx6HU8u9YZhmcphcEDBcHzoby/4FskEWIdpHfaE ESwqPaQpad7i/BemjKQJaLrv8/Y090zAEzty4jnH1iqZWV30SEkTzvSsOqtsL7YpkEqQ gGqXLB2lOIoIyeVmXggPTX+85mqVAWfWimfbwkjBd0lrNRGwcn6s/P5pJTZgE5QMKnS9 bScA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OV9YcdvH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c200si16325521pfb.301.2018.01.31.03.10.38; Wed, 31 Jan 2018 03:10:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OV9YcdvH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753822AbeAaLHo (ORCPT + 99 others); Wed, 31 Jan 2018 06:07:44 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:37901 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753633AbeAaLHi (ORCPT ); Wed, 31 Jan 2018 06:07:38 -0500 Received: by mail-wm0-f67.google.com with SMTP id 141so7115728wme.3 for ; Wed, 31 Jan 2018 03:07:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Gvc2gnMMHf9jCblnewkjE5KII1pRvmnIsokuLlAsJYU=; b=OV9YcdvH21mggBZlww1v2KlPashFkfqIrVMtcxB+zgTwhIcAbr5MAnJQbKSbm1ce3D UNDPrKMUidqSECqSIXq3TStolKK6jVgcH38iCWD48rE2s07RST99swWxkwpmaXFZdcQp CdZtYgums7p/jVfWFlJTxE45AglqY6zwKm+bE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Gvc2gnMMHf9jCblnewkjE5KII1pRvmnIsokuLlAsJYU=; b=eSdaKkoERYKJ71sRVJvbMrAbOP6izd12ALRCJ/F60+wRmnVi6Nf0m5hwGUPwtOCuHI q+gazNeUcdwMa5//cmOFJVeQr/QVfSOZvreLDamoySEXCnnKdHKifVsLdW5HqbKHN4F0 RIywLStiQIiXwgz8M9oKGovF2RI+WIbn1C7d58talEUeffY6LZVZuPMN3afiFDiiEGnv OQjMy83taPMTIwYx1BN/iTPayMHFHSPaslH1ID3b3nH1Ch1QW2XKRp5uyCURSXIRllSj 7pgkvdFaoAG1+UQQt1VvgHE35iZTHSBCSueGxpNw7LhjCTU7Jc9+vjK0Pz7QWq8KV5cD kFnA== X-Gm-Message-State: AKwxytdx7hNRufXk89L5Gdwc94+2vfkBNNeMiB6elMYXwD2rs5dBBOul mqkdp8Ziw+Dpw4s52jfvtidNIg== X-Received: by 10.28.113.82 with SMTP id m79mr26104276wmc.138.1517396856993; Wed, 31 Jan 2018 03:07:36 -0800 (PST) Received: from oak.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id k60sm24712060wrc.2.2018.01.31.03.07.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2018 03:07:35 -0800 (PST) Date: Wed, 31 Jan 2018 11:07:27 +0000 From: Daniel Thompson To: Aishwarya Pant Cc: Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Greg KH , Milo Kim , Julia Lawall Subject: Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes Message-ID: <20180131110727.rmmwyqzwozwhda6z@oak.lan> References: <6523e26889d3dd65e90ea27c0d302a95aeb9da8b.1516978005.git.aishpant@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6523e26889d3dd65e90ea27c0d302a95aeb9da8b.1516978005.git.aishpant@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 26, 2018 at 08:20:08PM +0530, Aishwarya Pant wrote: > Add documentation for sysfs interfaces of lp8788 backlight driver by > looking through the code and the git commit history. > > Signed-off-by: Aishwarya Pant > --- > Documentation/ABI/testing/sysfs-class-backlight-lp8788 | 10 ++++++++++ > 1 file changed, 10 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp8788 > > diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp8788 b/Documentation/ABI/testing/sysfs-class-backlight-lp8788 > new file mode 100644 > index 000000000000..c0e565c8d63d > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-class-backlight-lp8788 > @@ -0,0 +1,10 @@ > +sysfs interface for Texas Instruments lp8788 mfd backlight driver > +----------------------------------------------------------------- > + > +What: /sys/class/backlight//bl_ctl_mode > +Date: Feb, 2013 > +KernelVersion: v3.10 > +Contact: Milo Kim > +Description: > + (RO) Displays whether the brightness is controlled by the PWM > + input("PWM based") or the I2C register("Register based"). I rather dislike drivers with this type of "bonus" sysfs controls. I'm struggling to come up with any reason why the userspace would want to read this control (and I think bl_ctl_mode gets the fewest hits after searching with google hits of any search I've tried) . It looks to me like this is debug information that should never have gone into sysfs at all. So I think this is either something that should go directly into ABI/obsolete (with a fairly short expiry time) or perhaps simply remove the property entirely. Daniel.