greybus: endo: name routines consistently
Routines should be named this way: gb_<object>_<operation>. Fix all routines that don't match this. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
12eba9f8ef
commit
5ddf738e94
@ -62,7 +62,7 @@ static const struct attribute_group *endo_groups[] = {
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void greybus_endo_release(struct device *dev)
|
static void gb_endo_release(struct device *dev)
|
||||||
{
|
{
|
||||||
struct gb_endo *endo = to_gb_endo(dev);
|
struct gb_endo *endo = to_gb_endo(dev);
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ static void greybus_endo_release(struct device *dev)
|
|||||||
|
|
||||||
struct device_type greybus_endo_type = {
|
struct device_type greybus_endo_type = {
|
||||||
.name = "greybus_endo",
|
.name = "greybus_endo",
|
||||||
.release = greybus_endo_release,
|
.release = gb_endo_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ static bool validate_back_ribs(struct greybus_host_device *hd,
|
|||||||
* Validate the endo-id passed from SVC. Error out if its not a valid Endo,
|
* Validate the endo-id passed from SVC. Error out if its not a valid Endo,
|
||||||
* else return structure representing ribs positions on front and back of Endo.
|
* else return structure representing ribs positions on front and back of Endo.
|
||||||
*/
|
*/
|
||||||
static int gb_validate_endo_id(struct greybus_host_device *hd,
|
static int gb_endo_validate_id(struct greybus_host_device *hd,
|
||||||
struct endo_layout *layout, u16 endo_id)
|
struct endo_layout *layout, u16 endo_id)
|
||||||
{
|
{
|
||||||
/* Validate Endo Size */
|
/* Validate Endo Size */
|
||||||
@ -434,7 +434,7 @@ struct gb_endo *gb_endo_create(struct greybus_host_device *hd)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* First check if the value supplied is a valid endo id */
|
/* First check if the value supplied is a valid endo id */
|
||||||
if (gb_validate_endo_id(hd, &endo->layout, endo_id))
|
if (gb_endo_validate_id(hd, &endo->layout, endo_id))
|
||||||
goto free_endo;
|
goto free_endo;
|
||||||
|
|
||||||
endo->id = endo_id;
|
endo->id = endo_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user