* [PATCH] staging: iio: hmc5843: Add missing attribute name
@ 2011-04-27 14:39 Manuel Stahl
0 siblings, 0 replies; only message in thread
From: Manuel Stahl @ 2011-04-27 14:39 UTC (permalink / raw)
To: Shubhrajyoti Datta, linux-iio@vger.kernel.org; +Cc: Jonathan Cameron
Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de>
---
drivers/staging/iio/magnetometer/hmc5843.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/iio/magnetometer/hmc5843.c
b/drivers/staging/iio/magnetometer/hmc5843.c
index d0676e9..b015a38 100644
--- a/drivers/staging/iio/magnetometer/hmc5843.c
+++ b/drivers/staging/iio/magnetometer/hmc5843.c
@@ -481,6 +481,8 @@ static IIO_DEVICE_ATTR(magn_scale,
show_scale,
NULL , 0);
+static IIO_CONST_ATTR_NAME("hmc5843");
+
static struct attribute *hmc5843_attributes[] = {
&iio_dev_attr_meas_conf.dev_attr.attr,
&iio_dev_attr_operating_mode.dev_attr.attr,
@@ -491,6 +493,7 @@ static struct attribute *hmc5843_attributes[] = {
&iio_dev_attr_magn_y_raw.dev_attr.attr,
&iio_dev_attr_magn_z_raw.dev_attr.attr,
&iio_const_attr_sampling_frequency_available.dev_attr.attr,
+ &iio_const_attr_name.dev_attr.attr,
NULL
};
-- 1.7.2.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-27 14:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-27 14:39 [PATCH] staging: iio: hmc5843: Add missing attribute name Manuel Stahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox