aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_blackhole_dev.c
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-02-01 14:46:00 +0100
committerDavid S. Miller <davem@davemloft.net>2024-02-03 12:50:45 +0000
commitf2ec98566775dd4341ec1dcf93aa5859c60de826 (patch)
treeb2efdf59fcfa32965579f6fb44fb59996a0e3c38 /lib/test_blackhole_dev.c
parentMerge branch 'tools-ynl-auto-gen-for-all-genetlink-families' (diff)
downloadlinux-rng-f2ec98566775dd4341ec1dcf93aa5859c60de826.tar.xz
linux-rng-f2ec98566775dd4341ec1dcf93aa5859c60de826.zip
net: phy: qcom: qca808x: fix logic error in LED brightness set
In switching to using phy_modify_mmd and a more short version of the LED ON/OFF condition in later revision, it was made a logic error where value ? QCA808X_LED_FORCE_ON : QCA808X_LED_FORCE_OFF is always true as value is always OR with QCA808X_LED_FORCE_EN due to missing () resulting in the testing condition being QCA808X_LED_FORCE_EN | value. Add the () to apply the correct condition and restore correct functionality of the brightness ON/OFF. Fixes: 7196062b64ee ("net: phy: at803x: add LED support for qca808x") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_blackhole_dev.c')
0 files changed, 0 insertions, 0 deletions