mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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:
parent
6ab6094f37
commit
ab8a8fbe93
1 changed files with 24 additions and 27 deletions
|
@ -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,
|
||||||
|
|
||||||
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,
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue