summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-15 12:43:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-07-15 12:43:20 +0200
commitb844766e035674ed0a28eb7a2e96fd7a44675f44 (patch)
tree0d4a41d72a41b90913d185760decb71f6252c804 /include/driver.h
parentb449ef7374b3a14795323e4dd80acbc37cca5a60 (diff)
downloadbarebox-b844766e035674ed0a28eb7a2e96fd7a44675f44.tar.gz
barebox-b844766e035674ed0a28eb7a2e96fd7a44675f44.tar.xz
whitespace cleanup
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/include/driver.h b/include/driver.h
index a36fb5f659..e360778c04 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -16,49 +16,49 @@
struct device_d {
char name[MAX_DRIVER_NAME]; /* The name of this device. Used to match
- * to the corresponding driver.
+ * to the corresponding driver.
*/
- char id[MAX_DRIVER_NAME];
+ char id[MAX_DRIVER_NAME];
unsigned long size;
- /* For devices which are directly mapped into memory, i.e. NOR Flash or
- * SDRAM.
- */
- unsigned long map_base;
+ /* For devices which are directly mapped into memory, i.e. NOR Flash or
+ * SDRAM.
+ */
+ unsigned long map_base;
- void *platform_data; /* board specific information about this device */
- void *priv; /* data private to the driver */
+ void *platform_data; /* board specific information about this device */
+ void *priv; /* data private to the driver */
void *type_data; /* In case this device is a specific device, this pointer
* points to the type specific device, i.e. eth_device
*/
- struct driver_d *driver; /* The driver for this device */
+ struct driver_d *driver; /* The driver for this device */
struct device_d *next;
- unsigned long type;
+ unsigned long type;
- struct param_d *param;
+ struct param_d *param;
};
struct driver_d {
char name[MAX_DRIVER_NAME]; /* The name of this driver. Used to match to
- * the corresponding device.
+ * the corresponding device.
*/
struct driver_d *next;
- int (*probe) (struct device_d *);
+ int (*probe) (struct device_d *);
int (*remove)(struct device_d *);
- ssize_t (*read) (struct device_d*, void* buf, size_t count, ulong offset, ulong flags);
- ssize_t (*write) (struct device_d*, const void* buf, size_t count, ulong offset, ulong flags);
- ssize_t (*erase) (struct device_d*, size_t count, unsigned long offset);
+ ssize_t (*read) (struct device_d*, void* buf, size_t count, ulong offset, ulong flags);
+ ssize_t (*write) (struct device_d*, const void* buf, size_t count, ulong offset, ulong flags);
+ ssize_t (*erase) (struct device_d*, size_t count, unsigned long offset);
- void (*info) (struct device_d *);
- void (*shortinfo) (struct device_d *);
+ void (*info) (struct device_d *);
+ void (*shortinfo) (struct device_d *);
- unsigned long type;
- void *type_data; /* In case this driver is of a specific type, i.e. a filesystem
+ unsigned long type;
+ void *type_data; /* In case this driver is of a specific type, i.e. a filesystem
* driver, this pointer points to the corresponding data struct
*/
};