From: Wanlong Gao Date: Wed, 25 May 2011 00:13:06 +0000 (-0700) Subject: include/linux/c2port.h: remove wrong and never used macros X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21b7d815b2cc380929181e1a4a7129e8b569e574;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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: Wanlong Gao Cc: Rodolfo Giometti Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/c2port.h b/include/linux/c2port.h index 2a5cd867c36..a2f7d7413f3 100644 --- a/include/linux/c2port.h +++ b/include/linux/c2port.h @@ -60,9 +60,6 @@ struct c2port_ops { * 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, struct c2port_ops *ops, void *devdata); extern void c2port_device_unregister(struct c2port_device *dev);