summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2012-09-07 14:35:31 +0200
committerTom Rini <[email protected]>2012-10-15 11:53:48 -0700
commit89143fb3b0cc9897b7aa9ec8b6028a6c624887d4 (patch)
tree9e816e97bf358e4796387444ef44c665a5b192f2 /include
parent78322d63eac41957a41cd26d9b2e904da4a42fa1 (diff)
serial: Rename .init() and .uninit() in serial_device
Rename .init() to .start() and .uninit() to .stop() in struct serial_device. This allows aligning struct serial_device with closer to struct stdio_dev. The real goal here is to allow these two structures to converge together and eventually make one to be a superset of the other. Signed-off-by: Marek Vasut <[email protected]> Cc: Marek Vasut <[email protected]> Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/serial.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/serial.h b/include/serial.h
index e021a4cf6ff..84a77a1b53e 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -7,8 +7,8 @@ struct serial_device {
/* enough bytes to match alignment of following func pointer */
char name[16];
- int (*init)(void);
- int (*uninit)(void);
+ int (*start)(void);
+ int (*stop)(void);
void (*setbrg)(void);
int (*getc)(void);
int (*tstc)(void);