in my hacking, Ive found this macro useful/tempting:
vt2:+#define pdev_info(pdev, args...) dev_info(&(pdev)->dev, ## args )
which imitates and augments this from include/linux/device.h:
415 <http://www.linux-m32r.org/lxr/http/source/include/linux/device.h#L415> #define dev_err <http://www.linux-m32r.org/lxr/http/ident?i=dev_err>(dev <http://www.linux-m32r.org/lxr/http/ident?i=dev>, format <http://www.linux-m32r.org/lxr/http/ident?i=format>, arg <http://www.linux-m32r.org/lxr/http/ident?i=arg>...) \
416 <http://www.linux-m32r.org/lxr/http/source/include/linux/device.h#L416> dev_printk <http://www.linux-m32r.org/lxr/http/ident?i=dev_printk>(KERN_ERR <http://www.linux-m32r.org/lxr/http/ident?i=KERN_ERR> , dev <http://www.linux-m32r.org/lxr/http/ident?i=dev> , format <http://www.linux-m32r.org/lxr/http/ident?i=format> , ## arg <http://www.linux-m32r.org/lxr/http/ident?i=arg>)
Is this worth a proper patch to LKML to add a set of macros to
include/linux/platform_device ?
If so, should it reuse the dev_* defns (like the vt2:+ bit) right ?
If not, why ?
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/