From: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> To: Song Hongyan <hongyan.song-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>, linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: jikos-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, srinivas.pandruvada-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Subject: Re: [PATCH v2] hid: hid-sensor-prox: Add more data field for hysteresis parsing Date: Sat, 25 Feb 2017 16:44:33 +0000 [thread overview] Message-ID: <433426f5-28c2-80eb-74d2-5c980774a1ca@kernel.org> (raw) In-Reply-To: <1487755413-31421-1-git-send-email-hongyan.song-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> On 22/02/17 09:23, Song Hongyan wrote: > Add HID_USAGE_SENSOR_HUMAN_PRESENCE support for Human Presence sensitivity > parsing, in case some implementation uses it as sensitivity modifier. > > Signed-off-by: Song Hongyan <hongyan.song-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > Acked-by: Srinivas Pandruvada <srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> Applied to the togreg branch of iio.git which will be initially pushed out as testing for the autobuilders to play with it. > --- > change: adding Srinivas ack No actual need to post a new version to add an Ack. I'll generally pick them up directly from the thread whilst applying. Thanks, Jonathan > > drivers/iio/light/hid-sensor-prox.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c > index 45ca056..73fced8 100644 > --- a/drivers/iio/light/hid-sensor-prox.c > +++ b/drivers/iio/light/hid-sensor-prox.c > @@ -240,6 +240,13 @@ static int prox_parse_report(struct platform_device *pdev, > st->common_attributes.sensitivity.index, > st->common_attributes.sensitivity.report_id); > } > + if (st->common_attributes.sensitivity.index < 0) > + sensor_hub_input_get_attribute_info(hsdev, > + HID_FEATURE_REPORT, usage_id, > + HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS | > + HID_USAGE_SENSOR_HUMAN_PRESENCE, > + &st->common_attributes.sensitivity); > + > return ret; > } > >
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <jic23@kernel.org> To: Song Hongyan <hongyan.song@intel.com>, linux-input@vger.kernel.org, linux-iio@vger.kernel.org Cc: jikos@kernel.org, srinivas.pandruvada@intel.com Subject: Re: [PATCH v2] hid: hid-sensor-prox: Add more data field for hysteresis parsing Date: Sat, 25 Feb 2017 16:44:33 +0000 [thread overview] Message-ID: <433426f5-28c2-80eb-74d2-5c980774a1ca@kernel.org> (raw) In-Reply-To: <1487755413-31421-1-git-send-email-hongyan.song@intel.com> On 22/02/17 09:23, Song Hongyan wrote: > Add HID_USAGE_SENSOR_HUMAN_PRESENCE support for Human Presence sensitivity > parsing, in case some implementation uses it as sensitivity modifier. > > Signed-off-by: Song Hongyan <hongyan.song@intel.com> > Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Applied to the togreg branch of iio.git which will be initially pushed out as testing for the autobuilders to play with it. > --- > change: adding Srinivas ack No actual need to post a new version to add an Ack. I'll generally pick them up directly from the thread whilst applying. Thanks, Jonathan > > drivers/iio/light/hid-sensor-prox.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c > index 45ca056..73fced8 100644 > --- a/drivers/iio/light/hid-sensor-prox.c > +++ b/drivers/iio/light/hid-sensor-prox.c > @@ -240,6 +240,13 @@ static int prox_parse_report(struct platform_device *pdev, > st->common_attributes.sensitivity.index, > st->common_attributes.sensitivity.report_id); > } > + if (st->common_attributes.sensitivity.index < 0) > + sensor_hub_input_get_attribute_info(hsdev, > + HID_FEATURE_REPORT, usage_id, > + HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS | > + HID_USAGE_SENSOR_HUMAN_PRESENCE, > + &st->common_attributes.sensitivity); > + > return ret; > } > >
next prev parent reply other threads:[~2017-02-25 16:44 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-02-22 9:23 [PATCH v2] hid: hid-sensor-prox: Add more data field for hysteresis parsing Song Hongyan [not found] ` <1487755413-31421-1-git-send-email-hongyan.song-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2017-02-25 16:44 ` Jonathan Cameron [this message] 2017-02-25 16:44 ` 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=433426f5-28c2-80eb-74d2-5c980774a1ca@kernel.org \ --to=jic23-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \ --cc=hongyan.song-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \ --cc=jikos-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ --cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=srinivas.pandruvada-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \ /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.