From: Greg Kroah-Hartman Date: Mon, 1 Sep 2014 16:51:51 +0000 (-0700) Subject: greybus: greybus.h: tiny movement around X-Git-Tag: v5.15~12752^2~378^2~21^2~2159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=712d65915a3ad5bffaa8cd97e6dd951e1d10eabd;p=platform%2Fkernel%2Flinux-starfive.git greybus: greybus.h: tiny movement around --- diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h index 9b0b41b..f878453 100644 --- a/drivers/staging/greybus/greybus.h +++ b/drivers/staging/greybus/greybus.h @@ -102,23 +102,6 @@ struct greybus_device { }; #define to_greybus_device(d) container_of(d, struct greybus_device, dev) -/* - * Because we are allocating a data structure per "type" in the greybus device, - * we have static functions for this, not "dynamic" drivers like we really - * should in the end. - */ -int gb_i2c_probe(struct greybus_device *gdev, const struct greybus_device_id *id); -void gb_i2c_disconnect(struct greybus_device *gdev); -int gb_gpio_probe(struct greybus_device *gdev, const struct greybus_device_id *id); -void gb_gpio_disconnect(struct greybus_device *gdev); -int gb_sdio_probe(struct greybus_device *gdev, const struct greybus_device_id *id); -void gb_sdio_disconnect(struct greybus_device *gdev); -int gb_tty_probe(struct greybus_device *gdev, const struct greybus_device_id *id); -void gb_tty_disconnect(struct greybus_device *gdev); - -int gb_tty_init(void); -void gb_tty_exit(void); - struct gbuf *greybus_alloc_gbuf(struct greybus_device *gdev, struct cport *cport, gfp_t mem_flags); @@ -185,6 +168,23 @@ void gb_thread_destroy(void); int gb_debugfs_init(void); void gb_debugfs_cleanup(void); +/* + * Because we are allocating a data structure per "type" in the greybus device, + * we have static functions for this, not "dynamic" drivers like we really + * should in the end. + */ +int gb_i2c_probe(struct greybus_device *gdev, const struct greybus_device_id *id); +void gb_i2c_disconnect(struct greybus_device *gdev); +int gb_gpio_probe(struct greybus_device *gdev, const struct greybus_device_id *id); +void gb_gpio_disconnect(struct greybus_device *gdev); +int gb_sdio_probe(struct greybus_device *gdev, const struct greybus_device_id *id); +void gb_sdio_disconnect(struct greybus_device *gdev); +int gb_tty_probe(struct greybus_device *gdev, const struct greybus_device_id *id); +void gb_tty_disconnect(struct greybus_device *gdev); + +int gb_tty_init(void); +void gb_tty_exit(void); + #endif /* __KERNEL__ */