* Re: [PATCH V3.1] adds support for Texas Instruments ads1110 adc
[not found] ` <1325842505-17619-1-git-send-email-pirmin.duss@flytec.ch>
@ 2012-01-10 9:57 ` Lars-Peter Clausen
0 siblings, 0 replies; only message in thread
From: Lars-Peter Clausen @ 2012-01-10 9:57 UTC (permalink / raw)
To: Pirmin Duss; +Cc: Jonathan Cameron, linux-iio
On 01/06/2012 10:35 AM, Pirmin Duss wrote:
> From: Pirmin Duss (Flytec) <pirmin.duss@flytec.ch>
>
[...]
> +
> +static struct i2c_driver ads1110_driver = {
> + .driver = {
> + .name = "ads1110",
> + },
> + .probe = ads1110_probe,
> + .remove = __devexit_p(ads1110_remove),
> + .id_table = ads1110_id,
> +};
> +
> +static int __init ads1110_init(void)
> +{
> + return i2c_add_driver(&ads1110_driver);
> +}
> +module_init(ads1110_init);
> +
> +static void __exit ads1110_exit(void)
> +{
> + i2c_del_driver(&ads1110_driver);
> +}
> +module_exit(ads1110_exit);
Now that staging-next contains this macro please use
module_i2c_driver(ads1110_driver) here.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-10 9:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4F059EFC.5020902@metafoo.de>
[not found] ` <1325842505-17619-1-git-send-email-pirmin.duss@flytec.ch>
2012-01-10 9:57 ` [PATCH V3.1] adds support for Texas Instruments ads1110 adc Lars-Peter Clausen
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.