All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Murphy <dmurphy@ti.com>
To: Daniel Baluta <daniel.baluta@intel.com>
Cc: <linux-iio@vger.kernel.org>, Jonathan Cameron <jic23@kernel.org>,
	Peter Meerwald <pmeerw@pmeerw.net>,
	Karol Wrona <k.wrona@samsung.com>
Subject: Re: [RFC v2 1/3] iio: heart_monitors: Add support for heart rate monitors
Date: Thu, 13 Nov 2014 06:43:05 -0600	[thread overview]
Message-ID: <5464A759.4090608@ti.com> (raw)
In-Reply-To: <CAEnQRZBRASQZVtG2FYxy54k7LOeECnwoLARdGmLLjE5+PkYO-w@mail.gmail.com>

Daniel

On 11/06/2014 10:04 AM, Daniel Baluta wrote:
> Hi Dan,
>
> Use iio: heart_monitor instead of iio: heart_monitors in subject.
>
> On Thu, Nov 6, 2014 at 5:18 PM, Dan Murphy <dmurphy@ti.com> wrote:
>> Add a type for heart rate monitors
>> Add the modifier name in beats per minute.
>>
>> Signed-off-by: Dan Murphy <dmurphy@ti.com>
>> ---
>>
>> v2 - Updated per v1 comments - http://marc.info/?l=linux-iio&m=141331404232216&w=2
>>
>>  Documentation/ABI/testing/sysfs-bus-iio               | 7 +++++++
>>  drivers/iio/industrialio-core.c                       | 1 +
>>  drivers/staging/iio/Documentation/iio_event_monitor.c | 2 ++
>>  include/linux/iio/types.h                             | 3 ++-
>>  4 files changed, 12 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
>> index d760b02..bf95808 100644
>> --- a/Documentation/ABI/testing/sysfs-bus-iio
>> +++ b/Documentation/ABI/testing/sysfs-bus-iio
>> @@ -1028,3 +1028,10 @@ Contact: linux-iio@vger.kernel.org
>>  Description:
>>                 Raw value of rotation from true/magnetic north measured with
>>                 or without compensation from tilt sensors.
>> +
>> +What:          /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_tilt_comp_raw
>> +KernelVersion: 3.19
>> +Contact:       linux-iio@vger.kernel.org
>> +Description:
>> +               Raw value of rotation from true/magnetic north measured with
>> +               or without compensation from tilt sensors.
> Something went wrong here. This should be about
> heart rate monitor not  rotation from true/magnetic north.

Yes it was PEBKAC here.  I had filled this in for the heart rate but must have removed my work
when I was making the changes

I will fix in v3.

>
>> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
>> index af3e76d..e332a18 100644
>> --- a/drivers/iio/industrialio-core.c
>> +++ b/drivers/iio/industrialio-core.c
>> @@ -70,6 +70,7 @@ static const char * const iio_chan_type_name_spec[] = {
>>         [IIO_CCT] = "cct",
>>         [IIO_PRESSURE] = "pressure",
>>         [IIO_HUMIDITYRELATIVE] = "humidityrelative",
>> +       [IIO_HEARTRATE] = "heartrate",
>>  };
>>
>>  static const char * const iio_modifier_names[] = {
>> diff --git a/drivers/staging/iio/Documentation/iio_event_monitor.c b/drivers/staging/iio/Documentation/iio_event_monitor.c
>> index 569d6f8..90a655d 100644
>> --- a/drivers/staging/iio/Documentation/iio_event_monitor.c
>> +++ b/drivers/staging/iio/Documentation/iio_event_monitor.c
>> @@ -49,6 +49,7 @@ static const char * const iio_chan_type_name_spec[] = {
>>         [IIO_CCT] = "cct",
>>         [IIO_PRESSURE] = "pressure",
>>         [IIO_HUMIDITYRELATIVE] = "humidityrelative",
>> +       [IIO_HEARTRATE] = "heartrate"
>>  };
> Please, don't forget the comma after "heartrate".
>
>>  static const char * const iio_ev_type_text[] = {
>> @@ -108,6 +109,7 @@ static bool event_is_known(struct iio_event_data *event)
>>         case IIO_CCT:
>>         case IIO_PRESSURE:
>>         case IIO_HUMIDITYRELATIVE:
>> +       case IIO_HEARTRATE:
>>                 break;
>>         default:
>>                 return false;
>> diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h
>> index 4a2af8a..f22b9d6 100644
>> --- a/include/linux/iio/types.h
>> +++ b/include/linux/iio/types.h
>> @@ -30,6 +30,7 @@ enum iio_chan_type {
>>         IIO_CCT,
>>         IIO_PRESSURE,
>>         IIO_HUMIDITYRELATIVE,
>> +       IIO_HEARTRATE,
>>  };
>>
>>  enum iio_modifier {
>> @@ -59,7 +60,7 @@ enum iio_modifier {
>>         IIO_MOD_NORTH_MAGN,
>>         IIO_MOD_NORTH_TRUE,
>>         IIO_MOD_NORTH_MAGN_TILT_COMP,
>> -       IIO_MOD_NORTH_TRUE_TILT_COMP
>> +       IIO_MOD_NORTH_TRUE_TILT_COMP,
> You shouldn't care about this now. Hopefully, the comma will be fixed
> by the next person that adds an iio_modifier.

OK just thought I would clean some code.
But I will remove it

>
>>  };
>>
>>  enum iio_event_type {
>> --
>> 1.9.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Dan

-- 
------------------
Dan Murphy


      reply	other threads:[~2014-11-13 12:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 15:18 [RFC v2 1/3] iio: heart_monitors: Add support for heart rate monitors Dan Murphy
2014-11-06 15:18 ` [RFC v2 2/3] iio: bindings: Add TI afe4403 heart monitor documentation Dan Murphy
2014-11-08 11:48   ` Jonathan Cameron
2014-11-08 11:48     ` Jonathan Cameron
2014-11-13 12:40     ` Dan Murphy
2014-11-13 12:40       ` Dan Murphy
2014-11-19 22:02   ` Hartmut Knaack
2014-11-06 15:18 ` [RFC v2 3/3] iio: heart_monitor: Add TI afe4403 heart monitor Dan Murphy
2014-11-08 11:47   ` Jonathan Cameron
2014-11-06 16:04 ` [RFC v2 1/3] iio: heart_monitors: Add support for heart rate monitors Daniel Baluta
2014-11-13 12:43   ` Dan Murphy [this message]

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=5464A759.4090608@ti.com \
    --to=dmurphy@ti.com \
    --cc=daniel.baluta@intel.com \
    --cc=jic23@kernel.org \
    --cc=k.wrona@samsung.com \
    --cc=linux-iio@vger.kernel.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: link
Be 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.