aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ad525x_dpot.h
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2011-11-18 05:05:11 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-18 14:27:02 -0500
commit7f3379de9cd91e52c40a48b8c01ebdb2d2eec5cf (patch)
treef24d960081a21bf72628db7346a9f05f3eea45b6 /drivers/misc/ad525x_dpot.h
parentcfcfc9eca2bcbd26a8e206baeb005b055dbf8e37 (diff)
misc: ad525x_dpot: Add support for SPI module device table matching
Passing device name via platform data, is a leftover from times where SPI module device table matching was not existent. * Add id_table and remove old mechanism. (To my knowledge no intree boards affected) * Miscellaneous other cleanup. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc/ad525x_dpot.h')
-rw-r--r--drivers/misc/ad525x_dpot.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/misc/ad525x_dpot.h b/drivers/misc/ad525x_dpot.h
index a662f5987b68..3bea1d5e8774 100644
--- a/drivers/misc/ad525x_dpot.h
+++ b/drivers/misc/ad525x_dpot.h
@@ -208,12 +208,8 @@ struct ad_dpot_bus_data {
208 const struct ad_dpot_bus_ops *bops; 208 const struct ad_dpot_bus_ops *bops;
209}; 209};
210 210
211struct ad_dpot_id { 211int ad_dpot_probe(struct device *dev, struct ad_dpot_bus_data *bdata,
212 char *name; 212 unsigned long devid, const char *name);
213 unsigned long devid;
214};
215
216int ad_dpot_probe(struct device *dev, struct ad_dpot_bus_data *bdata, const struct ad_dpot_id *id);
217int ad_dpot_remove(struct device *dev); 213int ad_dpot_remove(struct device *dev);
218 214
219#endif 215#endif