aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Silva <silvagustavosilva@gmail.com>2010-10-19 01:40:42 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-19 13:54:51 -0400
commitbd384c2722428498669840db44c6a7aafab54c29 (patch)
tree8433c787cb255bf61ed97e883286b510550b5ecd
parentc694ed85eab4e7966cd83fca509ce27494e3e296 (diff)
Staging: frontier: fix coding style issues in tranzport.c
This is a patch to the tranzport.c file that fixes up the following issue WARNING: please, no space for starting a line x 23 Signed-off-by: Gustavo Silva <silvagustavo@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/frontier/tranzport.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/staging/frontier/tranzport.c b/drivers/staging/frontier/tranzport.c
index d33e1760b3a6..cde02839258a 100644
--- a/drivers/staging/frontier/tranzport.c
+++ b/drivers/staging/frontier/tranzport.c
@@ -174,37 +174,37 @@ static void usb_tranzport_abort_transfers(struct usb_tranzport *dev)
174 usb_kill_urb(dev->interrupt_out_urb); 174 usb_kill_urb(dev->interrupt_out_urb);
175} 175}
176 176
177#define show_int(value) \ 177#define show_int(value) \
178 static ssize_t show_##value(struct device *dev, \ 178 static ssize_t show_##value(struct device *dev, \
179 struct device_attribute *attr, char *buf) \ 179 struct device_attribute *attr, char *buf) \
180 { \ 180 { \
181 struct usb_interface *intf = to_usb_interface(dev); \ 181 struct usb_interface *intf = to_usb_interface(dev); \
182 struct usb_tranzport *t = usb_get_intfdata(intf); \ 182 struct usb_tranzport *t = usb_get_intfdata(intf); \
183 return sprintf(buf, "%d\n", t->value); \ 183 return sprintf(buf, "%d\n", t->value); \
184 } \ 184 } \
185 static DEVICE_ATTR(value, S_IRUGO, show_##value, NULL); 185 static DEVICE_ATTR(value, S_IRUGO, show_##value, NULL);
186 186
187#define show_set_int(value) \ 187#define show_set_int(value) \
188 static ssize_t show_##value(struct device *dev, \ 188 static ssize_t show_##value(struct device *dev, \
189 struct device_attribute *attr, char *buf) \ 189 struct device_attribute *attr, char *buf) \
190 { \ 190 { \
191 struct usb_interface *intf = to_usb_interface(dev); \ 191 struct usb_interface *intf = to_usb_interface(dev); \
192 struct usb_tranzport *t = usb_get_intfdata(intf); \ 192 struct usb_tranzport *t = usb_get_intfdata(intf); \
193 return sprintf(buf, "%d\n", t->value); \ 193 return sprintf(buf, "%d\n", t->value); \
194 } \ 194 } \
195 static ssize_t set_##value(struct device *dev, \ 195 static ssize_t set_##value(struct device *dev, \
196 struct device_attribute *attr, \ 196 struct device_attribute *attr, \
197 const char *buf, size_t count) \ 197 const char *buf, size_t count) \
198 { \ 198 { \
199 struct usb_interface *intf = to_usb_interface(dev); \ 199 struct usb_interface *intf = to_usb_interface(dev); \
200 struct usb_tranzport *t = usb_get_intfdata(intf); \ 200 struct usb_tranzport *t = usb_get_intfdata(intf); \
201 unsigned long temp; \ 201 unsigned long temp; \
202 if (strict_strtoul(buf, 10, &temp)) \ 202 if (strict_strtoul(buf, 10, &temp)) \
203 return -EINVAL; \ 203 return -EINVAL; \
204 t->value = temp; \ 204 t->value = temp; \
205 return count; \ 205 return count; \
206 } \ 206 } \
207 static DEVICE_ATTR(value, S_IWUGO | S_IRUGO, show_##value, set_##value); 207 static DEVICE_ATTR(value, S_IWUGO | S_IRUGO, show_##value, set_##value);
208 208
209show_int(enable); 209show_int(enable);
210show_int(offline); 210show_int(offline);