extcon: Use tab instead of space for indentation

The extcon header file defines the functions which used the mismatched
indentation and used the space on some case. So, this patch clean-up
the indentation in order to improve the readbility.

And this patch changes the return value of extcon_get_extcon_dev()
because of maintaing the same value with extcon_get_edev_by_phandle().

Signed-off-by: Chanwoo Choi <cwchoi00@gmail.com>
This commit is contained in:
Chanwoo Choi 2017-07-14 01:00:55 +09:00 committed by Chanwoo Choi
parent 6ab6094f37
commit ab8a8fbe93

View File

@ -355,15 +355,13 @@ static inline int extcon_set_property_capability(struct extcon_dev *edev,
}
static inline int extcon_register_notifier(struct extcon_dev *edev,
unsigned int id,
struct notifier_block *nb)
unsigned int id, struct notifier_block *nb)
{
return 0;
}
static inline int extcon_unregister_notifier(struct extcon_dev *edev,
unsigned int id,
struct notifier_block *nb)
unsigned int id, struct notifier_block *nb)
{
return 0;
}
@ -381,7 +379,7 @@ static inline void devm_extcon_unregister_notifier(struct device *dev,
static inline struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name)
{
return NULL;
return ERR_PTR(-ENODEV);
}
static inline struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev,
@ -409,8 +407,7 @@ static inline int extcon_register_interest(struct extcon_specific_cable_nb *obj,
return -EINVAL;
}
static inline int extcon_unregister_interest(struct extcon_specific_cable_nb
*obj)
static inline int extcon_unregister_interest(struct extcon_specific_cable_nb *obj)
{
return -EINVAL;
}