2005-05-17 11:21:14

by Yani Ioannou

[permalink] [raw]
Subject: [PATCH 2.6.12-rc4 14/15] include/linux/i2c-sysfs.h: i2c sensor_device_attribute and macros

This patch creates a new header with a potential standard i2c sensor
attribute type (which simply includes an int representing the sensor
number/index) and the associated macros, SENSOR_DEVICE_ATTR to define
a static attribute and to_sensor_dev_attr to get a
sensor_device_attribute reference from an embedded device_attribute
reference.

Please see the next patch to see how these can be used.

Signed-off-by: Yani Ioannou <[email protected]>

---


Attachments:
(No filename) (454.00 B)
patch-linux-2.6.12-rc4-sysfsdyncallback-deviceattr-i2c.diff.diffstat.txt (94.00 B)
patch-linux-2.6.12-rc4-sysfsdyncallback-deviceattr-i2c.diff (1.73 kB)
Download all attachments

2005-05-18 03:00:01

by Yani Ioannou

[permalink] [raw]
Subject: Re: [PATCH 2.6.12-rc4 14/15] include/linux/i2c-sysfs.h: i2c sensor_device_attribute and macros

Oops..I caught this simple typo while compile testing the adm1026
patch with everything, but it looks like I forgot to update the patch,
here is the corrected version (just adding the missing '=' ):

Signed-off-by: Yani Ioannou <[email protected]>

Yani

On 5/17/05, Yani Ioannou <[email protected]> wrote:
> This patch creates a new header with a potential standard i2c sensor
> attribute type (which simply includes an int representing the sensor
> number/index) and the associated macros, SENSOR_DEVICE_ATTR to define
> a static attribute and to_sensor_dev_attr to get a
> sensor_device_attribute reference from an embedded device_attribute
> reference.
>
> Please see the next patch to see how these can be used.
>
> Signed-off-by: Yani Ioannou <[email protected]>
>
> ---
>
>
>


Attachments:
(No filename) (803.00 B)
patch-linux-2.6.12-rc4-sysfsdyncallback-deviceattr-i2c.diff.diffstat.txt (93.00 B)
patch-linux-2.6.12-rc4-sysfsdyncallback-deviceattr-i2c.diff (1.73 kB)
Download all attachments