greybus: create get_version() routines with the help of a macro
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 21 Jan 2015 12:42:36 +0000 (18:12 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 22 Jan 2015 03:29:39 +0000 (11:29 +0800)
commit36e79dec96f652110ae2b06bfcf9e67e1b770787
tree333e41723bf440abb77c0dc1ea89cbacf198a480
parent530430b717f02843fe1f2e77e6f52a41e05d6c3a
greybus: create get_version() routines with the help of a macro

This gets rid of lots of duplication of code.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/battery.c
drivers/staging/greybus/gpio.c
drivers/staging/greybus/i2c.c
drivers/staging/greybus/protocol.c
drivers/staging/greybus/protocol.h
drivers/staging/greybus/pwm.c
drivers/staging/greybus/uart.c
drivers/staging/greybus/usb.c
drivers/staging/greybus/vibrator.c