From: Jonathan Cameron <jic23@kernel.org> To: Brian Masney <masneyb@onstation.org> Cc: devel@driverdev.osuosl.org, lars@metafoo.de, linux-iio@vger.kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Jon.Brenner@ams.com, pmeerw@pmeerw.net, knaack.h@gmx.de Subject: Re: [PATCH 11/12] staging: iio: tsl2x7x: remove unnecessary sysfs attribute Date: Sat, 10 Mar 2018 14:54:10 +0000 [thread overview] Message-ID: <20180310145410.3dac7025@archlinux> (raw) In-Reply-To: <20180304014942.18727-12-masneyb@onstation.org> On Sat, 3 Mar 2018 20:49:41 -0500 Brian Masney <masneyb@onstation.org> wrote: > The tsl2771 and tmd2771 devices create the > in_proximity0_calibscale_available sysfs attribute. These two particular > devices do not support changing the proximity gain value on the > chip so this patch removes that sysfs attribute. As expected, these two > devices already did not create the IIO_CHAN_INFO_CALIBSCALE channel and > proximity0_calibrate sysfs attribute. > > Page 38 of the tsl2772 data sheet shows that the proximity gain can be > adjusted with bits 2-3 on the control register: > https://ams.com/eng/content/download/291503/1066377/file/TSL2772_DS000181_2-00.pdf > > Page 35 of the tsl2771 and tmd2771 data sheets shows that bits 2-3 on > the control register are reserved and changing the proximity gain is > not supported: > https://ams.com/eng/content/download/250264/976045/file/TSL2771_DS000105_3-00.pdf > https://ams.com/eng/content/download/250283/976077/file/TMD2771_DS000177_2-00.pdf > > Signed-off-by: Brian Masney <masneyb@onstation.org> This one applied without the previous so I have done so. Applied. Thanks, Jonathan > --- > drivers/staging/iio/light/tsl2x7x.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c > index fb91c46c8747..8c29a52153c1 100644 > --- a/drivers/staging/iio/light/tsl2x7x.c > +++ b/drivers/staging/iio/light/tsl2x7x.c > @@ -1477,7 +1477,6 @@ static struct attribute *tsl2x7x_ALSPRX_device_attrs[] = { > &dev_attr_in_illuminance0_target_input.attr, > &dev_attr_in_illuminance0_calibrate.attr, > &dev_attr_in_illuminance0_lux_table.attr, > - &iio_const_attr_in_proximity0_calibscale_available.dev_attr.attr, > NULL > }; > _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <jic23@kernel.org> To: Brian Masney <masneyb@onstation.org> Cc: linux-iio@vger.kernel.org, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org, Jon.Brenner@ams.com Subject: Re: [PATCH 11/12] staging: iio: tsl2x7x: remove unnecessary sysfs attribute Date: Sat, 10 Mar 2018 14:54:10 +0000 [thread overview] Message-ID: <20180310145410.3dac7025@archlinux> (raw) In-Reply-To: <20180304014942.18727-12-masneyb@onstation.org> On Sat, 3 Mar 2018 20:49:41 -0500 Brian Masney <masneyb@onstation.org> wrote: > The tsl2771 and tmd2771 devices create the > in_proximity0_calibscale_available sysfs attribute. These two particular > devices do not support changing the proximity gain value on the > chip so this patch removes that sysfs attribute. As expected, these two > devices already did not create the IIO_CHAN_INFO_CALIBSCALE channel and > proximity0_calibrate sysfs attribute. > > Page 38 of the tsl2772 data sheet shows that the proximity gain can be > adjusted with bits 2-3 on the control register: > https://ams.com/eng/content/download/291503/1066377/file/TSL2772_DS000181_2-00.pdf > > Page 35 of the tsl2771 and tmd2771 data sheets shows that bits 2-3 on > the control register are reserved and changing the proximity gain is > not supported: > https://ams.com/eng/content/download/250264/976045/file/TSL2771_DS000105_3-00.pdf > https://ams.com/eng/content/download/250283/976077/file/TMD2771_DS000177_2-00.pdf > > Signed-off-by: Brian Masney <masneyb@onstation.org> This one applied without the previous so I have done so. Applied. Thanks, Jonathan > --- > drivers/staging/iio/light/tsl2x7x.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c > index fb91c46c8747..8c29a52153c1 100644 > --- a/drivers/staging/iio/light/tsl2x7x.c > +++ b/drivers/staging/iio/light/tsl2x7x.c > @@ -1477,7 +1477,6 @@ static struct attribute *tsl2x7x_ALSPRX_device_attrs[] = { > &dev_attr_in_illuminance0_target_input.attr, > &dev_attr_in_illuminance0_calibrate.attr, > &dev_attr_in_illuminance0_lux_table.attr, > - &iio_const_attr_in_proximity0_calibscale_available.dev_attr.attr, > NULL > }; >
next prev parent reply other threads:[~2018-03-10 14:54 UTC|newest] Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-03-04 1:49 [PATCH 00/12] staging cleanups Brian Masney 2018-03-04 1:49 ` [PATCH 01/12] staging: iio: tsl2x7x: remove power functions from tsl2X7X_platform_data Brian Masney 2018-03-10 14:20 ` Jonathan Cameron 2018-03-10 14:20 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 02/12] staging: iio: tsl2x7x: add common function for clearing interrupts Brian Masney 2018-03-10 14:27 ` Jonathan Cameron 2018-03-10 14:27 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 03/12] staging: iio: tsl2x7x: add common function for reading chip status Brian Masney 2018-03-10 14:34 ` Jonathan Cameron 2018-03-10 14:34 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 04/12] staging: iio: tsl2x7x: add common function for writing to the control register Brian Masney 2018-03-10 14:36 ` Jonathan Cameron 2018-03-10 14:36 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 05/12] staging: iio: tsl2x7x: convert mutex_trylock() to mutex_lock() Brian Masney 2018-03-10 14:39 ` Jonathan Cameron 2018-03-10 14:39 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 06/12] staging: iio: tsl2x7x: correctly return errors in tsl2x7x_get_prox() Brian Masney 2018-03-10 14:42 ` Jonathan Cameron 2018-03-10 14:42 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 07/12] staging: iio: tsl2x7x: correct 'Avoid CamelCase' warning from checkpatch Brian Masney 2018-03-10 14:43 ` Jonathan Cameron 2018-03-10 14:43 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 08/12] staging: iio: tsl2x7x: add error handling to tsl2x7x_prox_cal() Brian Masney 2018-03-10 14:44 ` Jonathan Cameron 2018-03-10 14:44 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 09/12] staging: iio: tsl2x7x: add missing error checks Brian Masney 2018-03-10 14:45 ` Jonathan Cameron 2018-03-10 14:45 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 10/12] staging: iio: tsl2x7x: make logging consistent and correct newlines Brian Masney 2018-03-10 14:52 ` Jonathan Cameron 2018-03-10 14:52 ` Jonathan Cameron 2018-03-11 13:45 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 11/12] staging: iio: tsl2x7x: remove unnecessary sysfs attribute Brian Masney 2018-03-10 14:54 ` Jonathan Cameron [this message] 2018-03-10 14:54 ` Jonathan Cameron 2018-03-04 1:49 ` [PATCH 12/12] staging: iio: tsl2x7x: make proximity sensor function correctly Brian Masney 2018-03-10 14:56 ` Jonathan Cameron
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=20180310145410.3dac7025@archlinux \ --to=jic23@kernel.org \ --cc=Jon.Brenner@ams.com \ --cc=devel@driverdev.osuosl.org \ --cc=gregkh@linuxfoundation.org \ --cc=knaack.h@gmx.de \ --cc=lars@metafoo.de \ --cc=linux-iio@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=masneyb@onstation.org \ --cc=pmeerw@pmeerw.net \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.