From mboxrd@z Thu Jan 1 00:00:00 1970 From: alexander.stein@systec-electronic.com (Alexander Stein) Date: Wed, 14 Dec 2011 11:27:20 +0100 Subject: [PATCH 1/3] ARM: AT91: Add platform data for the ADCs In-Reply-To: <1323856877-18255-2-git-send-email-maxime.ripard@free-electrons.com> References: <1323856877-18255-1-git-send-email-maxime.ripard@free-electrons.com> <1323856877-18255-2-git-send-email-maxime.ripard@free-electrons.com> Message-ID: <77881664.jmuBXsRUXo@ws-stein> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wednesday 14 December 2011 11:01:15 Maxime Ripard wrote: > Signed-off-by: Maxime Ripard > Acked-by: Jonathan Cameron > Signed-off-by: Nicolas Ferre > Acked-by: Jean-Christophe PLAGNIOL-VILLARD > > Cc: Patrice Vilchez > Cc: Thomas Petazzoni > --- > include/linux/platform_data/at91_adc.h | 23 +++++++++++++++++++++++ > 1 files changed, 23 insertions(+), 0 deletions(-) > create mode 100644 include/linux/platform_data/at91_adc.h > > diff --git a/include/linux/platform_data/at91_adc.h > b/include/linux/platform_data/at91_adc.h new file mode 100644 > index 0000000..bad80b7 > --- /dev/null > +++ b/include/linux/platform_data/at91_adc.h > @@ -0,0 +1,23 @@ > +/* > + * Copyright (C) 2011 Free Electrons > + * > + * Licensed under the GPLv2 or later. > + * > + */ > + > +#ifndef _AT91_ADC_H_ > +#define _AT91_ADC_H_ > + > +/** > + * struct at91_adc_data - platform data for ADC driver > + * @channels_use: channels in use on the board as a bitmask > + * @vref: Reference voltage for the ADC in millvolts Nitpick, this should write millivolts, no? > + */ > +struct at91_adc_data { > + unsigned long channels_used; > + u16 vref; > +}; > + > +extern void __init at91_add_device_adc(struct at91_adc_data *data); > + > +#endif Regards, Alexander