Skip to content

Commit

Permalink
ath10k: replace config_enabled() with IS_REACHABLE()
Browse files Browse the repository at this point in the history
Commit 97f2645 ("tree-wide: replace config_enabled() with
IS_ENABLED()") mostly did away with config_enabled().

This is one of the postponed TODO items as config_enabled() is used
for a tristate option here.  Theoretically, config_enabled() is
equivalent to IS_BUILTIN(), but I guess IS_REACHABLE() is the best
fit for this case because both CONFIG_HWMON and CONFIG_ATH10K are
tristate.

Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
masahir0y authored and kvalo committed Sep 2, 2016
1 parent afcbc82 commit 749bc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath10k/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int ath10k_thermal_register(struct ath10k *ar)

/* Avoid linking error on devm_hwmon_device_register_with_groups, I
* guess linux/hwmon.h is missing proper stubs. */
if (!config_enabled(CONFIG_HWMON))
if (!IS_REACHABLE(CONFIG_HWMON))
return 0;

hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev,
Expand Down

0 comments on commit 749bc03

Please sign in to comment.