Commit ab8a8fbe authored by Chanwoo Choi's avatar Chanwoo Choi Committed by Chanwoo Choi

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: default avatarChanwoo Choi <cwchoi00@gmail.com>
parent 6ab6094f
...@@ -355,15 +355,13 @@ static inline int extcon_set_property_capability(struct extcon_dev *edev, ...@@ -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, static inline int extcon_register_notifier(struct extcon_dev *edev,
unsigned int id, unsigned int id, struct notifier_block *nb)
struct notifier_block *nb)
{ {
return 0; return 0;
} }
static inline int extcon_unregister_notifier(struct extcon_dev *edev, static inline int extcon_unregister_notifier(struct extcon_dev *edev,
unsigned int id, unsigned int id, struct notifier_block *nb)
struct notifier_block *nb)
{ {
return 0; return 0;
} }
...@@ -381,7 +379,7 @@ static inline void devm_extcon_unregister_notifier(struct device *dev, ...@@ -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) 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, 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, ...@@ -409,8 +407,7 @@ static inline int extcon_register_interest(struct extcon_specific_cable_nb *obj,
return -EINVAL; return -EINVAL;
} }
static inline int extcon_unregister_interest(struct extcon_specific_cable_nb static inline int extcon_unregister_interest(struct extcon_specific_cable_nb *obj)
*obj)
{ {
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment