mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 05:04:20 +00:00
maple: Kill useless private_data pointer.
We can simply wrap in to the dev_set/get_drvdata(), there's no reason to track an extra level of private data on top of the struct device. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
63870295de
commit
617870632d
3 changed files with 12 additions and 8 deletions
|
@ -51,7 +51,6 @@ struct maple_devinfo {
|
|||
struct maple_device {
|
||||
struct maple_driver *driver;
|
||||
struct mapleq *mq;
|
||||
void *private_data;
|
||||
void (*callback) (struct mapleq * mq);
|
||||
unsigned long when, interval, function;
|
||||
struct maple_devinfo devinfo;
|
||||
|
@ -80,4 +79,7 @@ void maple_clear_dev(struct maple_device *mdev);
|
|||
#define to_maple_dev(n) container_of(n, struct maple_device, dev)
|
||||
#define to_maple_driver(n) container_of(n, struct maple_driver, drv)
|
||||
|
||||
#define maple_get_drvdata(d) dev_get_drvdata(&(d)->dev)
|
||||
#define maple_set_drvdata(d,p) dev_set_drvdata(&(d)->dev, (p))
|
||||
|
||||
#endif /* __LINUX_MAPLE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue