Commit 21b7d815 authored by Wanlong Gao's avatar Wanlong Gao Committed by Linus Torvalds

include/linux/c2port.h: remove wrong and never used macros

The macro to_class_dev() uses the deprecated structure class_device, and
the c2port_device has no member named class in the definition of the macro
to_c2port_device.
Signed-off-by: default avatarWanlong Gao <wanlong.gao@gmail.com>
Cc: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0ac1ee0b
...@@ -60,9 +60,6 @@ struct c2port_ops { ...@@ -60,9 +60,6 @@ struct c2port_ops {
* Exported functions * Exported functions
*/ */
#define to_class_dev(obj) container_of((obj), struct class_device, kobj)
#define to_c2port_device(obj) container_of((obj), struct c2port_device, class)
extern struct c2port_device *c2port_device_register(char *name, extern struct c2port_device *c2port_device_register(char *name,
struct c2port_ops *ops, void *devdata); struct c2port_ops *ops, void *devdata);
extern void c2port_device_unregister(struct c2port_device *dev); extern void c2port_device_unregister(struct c2port_device *dev);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment