w1: DS2760: move EXPORT_SYMBOL() to function declarations
PATCH 1/1 w1: DS2760: move EXPORT_SYMBOL() to function declarations
Signed-off-by Daniel Mack <[email protected]>
Cc Evgeniy Polyakov <[email protected]>
Cc Anton Vorontsov <[email protected]>
--- drivers/w1/slaves/w1_ds2760.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
drivers/w1/slaves/w1_ds2760.c +4 -5
@@ -63,11 +63,13 @@ int w1_ds2760_read(struct device *dev, char *buf, int addr, size_t count) {return w1_ds2760_io (dev, buf, addr, count,0 ); } +EXPORT_SYMBOL (w1_ds2760_read);int w1_ds2760_write (struct device *dev,char *buf,int addr,size_t count) {return w1_ds2760_io (dev, buf, addr, count,1 ); } +EXPORT_SYMBOL (w1_ds2760_write);static int w1_ds2760_eeprom_cmd (struct device *dev,int addr,int cmd) {
@@ -91,11 +93,13 @@ int w1_ds2760_store_eeprom(struct device *dev, int addr) {return w1_ds2760_eeprom_cmd (dev, addr,W1_DS2760_COPY_DATA ); } +EXPORT_SYMBOL (w1_ds2760_store_eeprom);int w1_ds2760_recall_eeprom (struct device *dev,int addr) {return w1_ds2760_eeprom_cmd (dev, addr,W1_DS2760_RECALL_DATA ); } +EXPORT_SYMBOL (w1_ds2760_recall_eeprom); static ssize_t w1_ds2760_read_bin(struct kobject *kobj, struct bin_attribute *bin_attr,
@@ -227,11 +231,6 @@ static void __exit w1_ds2760_exit(void)idr_destroy (&bat_idr); } -EXPORT_SYMBOL (w1_ds2760_read); -EXPORT_SYMBOL (w1_ds2760_write); -EXPORT_SYMBOL (w1_ds2760_store_eeprom); -EXPORT_SYMBOL (w1_ds2760_recall_eeprom); -module_init (w1_ds2760_init);module_exit (w1_ds2760_exit);
Signature · 1 line
1.7.1
Quoted 2 lines · Daniel Mack
Signed-off-by Daniel Mack <[email protected]>Cc Evgeniy Polyakov <[email protected]>
Acked-by Anton Vorontsov <[email protected]>
Evgeniy, I can take it via battery-2.6.git tree, but I'll need your Ack.
Thanks!