public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Daniel Thompson <daniel.thompson@linaro.org>,
	Aishwarya Pant <aishpant@gmail.com>
Cc: Milo Kim <milo.kim@ti.com>,
	linux-fbdev@vger.kernel.org,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Jingoo Han <jingoohan1@gmail.com>,
	Jonathan Corbet <corbet@lwn.net>,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Julia Lawall <julia.lawall@lip6.fr>,
	Greg KH <gregkh@linuxfoundation.org>,
	Lee Jones <lee.jones@linaro.org>
Subject: Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes
Date: Wed, 31 Jan 2018 13:51:21 +0200	[thread overview]
Message-ID: <878tceckli.fsf@intel.com> (raw)
In-Reply-To: <20180131110727.rmmwyqzwozwhda6z@oak.lan>

On Wed, 31 Jan 2018, Daniel Thompson <daniel.thompson@linaro.org> wrote:
> 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 <aishpant@gmail.com>
>> ---
>>  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/<backlight>/bl_ctl_mode
>> +Date:		Feb, 2013
>> +KernelVersion:	v3.10
>> +Contact:	Milo Kim <milo.kim@ti.com>
>> +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.

Agreed. I think the same holds for the other extra sysfs attributes. At
worst, having these prevents the backlight class from adding the names
later on, which is just backwards.

BR,
Jani.


>
> 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.
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Jani Nikula, Intel Open Source Technology Center

  reply	other threads:[~2018-01-31 11:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-26 14:48 [PATCH 0/5] backlight: document sysfs interfaces Aishwarya Pant
2018-01-26 14:50 ` [PATCH 1/5] backlight: lp8788: document sysfs attributes Aishwarya Pant
2018-01-31 11:07   ` Daniel Thompson
2018-01-31 11:51     ` Jani Nikula [this message]
2018-02-01 11:36       ` Daniel Thompson
2018-02-05  7:25         ` Aishwarya Pant
2018-02-05 14:39           ` Daniel Thompson
2018-01-26 14:53 ` [PATCH 2/5] backlight: lp855x: " Aishwarya Pant
2018-02-01 11:06   ` Daniel Thompson
2018-02-01 15:46     ` Aishwarya Pant
2018-01-26 14:53 ` [PATCH 3/5] backlight: lm3639: " Aishwarya Pant
2018-01-31 11:34   ` Daniel Thompson
2018-01-26 14:54 ` [PATCH 4/5] backlight: adp5520: " Aishwarya Pant
2018-02-01 16:28   ` Michael Hennerich
2018-01-26 14:55 ` [PATCH 5/5] backlight: adp8860: " Aishwarya Pant
2018-02-01 16:28   ` Michael Hennerich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tceckli.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=aishpant@gmail.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=corbet@lwn.net \
    --cc=daniel.thompson@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jingoohan1@gmail.com \
    --cc=julia.lawall@lip6.fr \
    --cc=lee.jones@linaro.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=milo.kim@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox