Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+24 −27
Original line number Diff line number Diff line
@@ -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;
}