Skip to contentSkip to conversation

adds support for Texas Instruments ads1110 adc

PATCH Lars-Peter Clausen 1 participant 1 message Jan 10, 2012 2 messages not in the archive IIO

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 2 lines · Pirmin Duss

From: Pirmin Duss (Flytec) <[email protected]>

[...]

Quoted 11 lines
(quoted diff) +11 -0
+
+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)

Review

Quoted 10 lines
(quoted diff) +10 -0
+{
+	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.