All of lore.kernel.org
 help / color / mirror / Atom feed
* naming IIO_IN_DIFF in-in
@ 2011-06-07  9:00 Michael Hennerich
  2011-06-07  9:27 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Hennerich @ 2011-06-07  9:00 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio@vger.kernel.org

Hi Jonathan,

I wonder if naming IIO_IN_DIFF in-in is really a good idea.
Declaring the attribute in a conventional fashion doesn't work.

static IIO_DEVICE_ATTR(in-in_scale_available, S_IRUGO, \
ad7793_show_scale_available, NULL, 0);

static struct attribute *ad7793_attributes[] =3D {
&iio_dev_attr_sampling_frequency.dev_attr.attr,
&iio_const_attr_sampling_frequency_available.dev_attr.attr,
&iio_dev_attr_in-in_scale_available.dev_attr.attr,
NULL
};

drivers/staging/iio/adc/ad7793.c:681: error: expected =91=3D=92, =91,=92,=
 =91;=92,=20
=91asm=92 or =91__attribute__=92 before =91-=92 token
drivers/staging/iio/adc/ad7793.c:688: error: =91iio_dev_attr_in=92=20
undeclared here (not in a function)
drivers/staging/iio/adc/ad7793.c:688: error: =91in_scale_available=92=20
undeclared here (not in a function)

--=20
Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin,
Margaret Seif

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-07 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07  9:00 naming IIO_IN_DIFF in-in Michael Hennerich
2011-06-07  9:27 ` Jonathan Cameron
2011-06-07 11:19   ` Hennerich, Michael

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.