From: Jonathan Cameron <jic23@kernel.org>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
jkosina@suse.cz
Cc: linux-iio@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [PATCH 2/4] iio: hid_sensor_hub: update parameters to get feature report
Date: Sat, 10 Jan 2015 22:28:06 +0000 [thread overview]
Message-ID: <54B1A776.2070507@kernel.org> (raw)
In-Reply-To: <1420655508-6736-3-git-send-email-srinivas.pandruvada@linux.intel.com>
On 07/01/15 18:31, Srinivas Pandruvada wrote:
> The new sensor_hub_get_feature can return multiple values, this
> resulted in the change in API. Update the API usage here.
So the build will break between the previous patch and this one?
Thus making the kernel unbisectable.
Please merge the two patches to avoid that issue.
Same is true of the last two patches in this series.
Jonathan
>
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
> drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 13 +++++++------
> drivers/iio/common/hid-sensors/hid-sensor-trigger.c | 4 ++--
> 2 files changed, 9 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
> index 25b01e1..e1435e9 100644
> --- a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
> +++ b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
> @@ -153,8 +153,8 @@ s32 hid_sensor_read_poll_value(struct hid_sensor_common *st)
> int ret;
>
> ret = sensor_hub_get_feature(st->hsdev,
> - st->poll.report_id,
> - st->poll.index, &value);
> + st->poll.report_id,
> + st->poll.index, sizeof(value), &value);
>
> if (ret < 0 || value < 0) {
> return -EINVAL;
> @@ -174,8 +174,8 @@ int hid_sensor_read_samp_freq_value(struct hid_sensor_common *st,
> int ret;
>
> ret = sensor_hub_get_feature(st->hsdev,
> - st->poll.report_id,
> - st->poll.index, &value);
> + st->poll.report_id,
> + st->poll.index, sizeof(value), &value);
> if (ret < 0 || value < 0) {
> *val1 = *val2 = 0;
> return -EINVAL;
> @@ -229,8 +229,9 @@ int hid_sensor_read_raw_hyst_value(struct hid_sensor_common *st,
> int ret;
>
> ret = sensor_hub_get_feature(st->hsdev,
> - st->sensitivity.report_id,
> - st->sensitivity.index, &value);
> + st->sensitivity.report_id,
> + st->sensitivity.index, sizeof(value),
> + &value);
> if (ret < 0 || value < 0) {
> *val1 = *val2 = 0;
> return -EINVAL;
> diff --git a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
> index 92068cd..ef0c495 100644
> --- a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
> +++ b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
> @@ -76,8 +76,8 @@ int hid_sensor_power_state(struct hid_sensor_common *st, bool state)
> }
>
> sensor_hub_get_feature(st->hsdev, st->power_state.report_id,
> - st->power_state.index,
> - &state_val);
> + st->power_state.index,
> + sizeof(state_val), &state_val);
> return 0;
> }
> EXPORT_SYMBOL(hid_sensor_power_state);
>
next prev parent reply other threads:[~2015-01-10 22:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 18:31 [PATCH 0/4] Enhance feature report APIs Srinivas Pandruvada
[not found] ` <1420655508-6736-1-git-send-email-srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-01-07 18:31 ` [PATCH 1/4] HID: hid-sensor-hub: Enhance feature report API Srinivas Pandruvada
2015-01-07 18:31 ` [PATCH 2/4] iio: hid_sensor_hub: update parameters to get feature report Srinivas Pandruvada
2015-01-10 22:28 ` Jonathan Cameron [this message]
2015-01-07 18:31 ` [PATCH 3/4] HID: hid-sensor-hub: Enhance feature report set API Srinivas Pandruvada
2015-01-07 18:31 ` [PATCH 4/4] iio: hid_sensor_hub: update parameters to set feature report Srinivas Pandruvada
-- strict thread matches above, loose matches on Subject: below --
2015-01-07 0:58 [PATCH] HID: hid-sensor-hub: Correct documentation Srinivas Pandruvada
[not found] ` <1420592328-9942-1-git-send-email-srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-01-07 0:58 ` [PATCH 2/4] iio: hid_sensor_hub: update parameters to get feature report Srinivas Pandruvada
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=54B1A776.2070507@kernel.org \
--to=jic23@kernel.org \
--cc=jkosina@suse.cz \
--cc=linux-iio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.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;
as well as URLs for NNTP newsgroup(s).