diff options
author | Chris Lu <luchris@google.com> | 2022-04-27 15:42:49 +0800 |
---|---|---|
committer | Chris Lu <luchris@google.com> | 2022-04-27 10:18:24 +0000 |
commit | 97310ef2c2e200f1dda3216237b6b11dfbd5c240 (patch) | |
tree | 7153803f487c1bdab0355b739d39ee7ab7a5c94f | |
parent | 5b5fd5b7e9f7301bc98fe565754c07428ce2c3e7 (diff) | |
download | display-97310ef2c2e200f1dda3216237b6b11dfbd5c240.tar.gz |
panel: correct the logic of OSC2 node
Correct the logic of OSC2 node to avoid problems while writing.
Bug: 212601547
Test: write the node without problems
Change-Id: I67d1f573f15e4f0cecaf41eaa9e13655d674714e
Signed-off-by: Chris Lu <luchris@google.com>
-rw-r--r-- | samsung/panel/panel-samsung-drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samsung/panel/panel-samsung-drv.c b/samsung/panel/panel-samsung-drv.c index 41b079d..b8a7650 100644 --- a/samsung/panel/panel-samsung-drv.c +++ b/samsung/panel/panel-samsung-drv.c @@ -1389,7 +1389,7 @@ static ssize_t osc2_clk_khz_store(struct device *dev, struct device_attribute *a if (!is_panel_active(ctx)) return -EPERM; - if (!funcs && !funcs->set_osc2_clk_khz) + if (!funcs || !funcs->set_osc2_clk_khz) return -EOPNOTSUPP; ret = kstrtou32(buf, 0, &osc2_clk_khz); |