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

Unverified Commit c0342d35 authored by Michael Bestas's avatar Michael Bestas
Browse files

input: touchscreen: goodix_berlin_a: Fix enum conversion error

drivers/input/touchscreen/goodix_berlin_a_driver/goodix_ts_core.c:
    85:11: error: comparison of different enumeration types
    ('enum GOODIX_IC_CONFIG_TYPE' and 'enum GOODIX_CFG_CHARGE_TYPE')
    [-Werror,-Wenum-compare]
   85 |         if (type == CFG_TYPE_CHARGE) {
      |             ~~~~ ^  ~~~~~~~~~~~~~~~
1 error generated.

Change-Id: I4744088d7d3df4d8bfe92ad35bc776a9ce138e45
parent 5c311bb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ static int goodix_ts_switch_config(struct goodix_ts_core *cd, enum GOODIX_IC_CON
			cd->config_type = type;
	}

	if (type == CFG_TYPE_CHARGE) {
	if (type == (enum GOODIX_IC_CONFIG_TYPE)CFG_TYPE_CHARGE) {
		ts_debug("ready for sending charge cmd ......");
		ret = cd->hw_ops->write(cd,
								CUSTOM_ADDR,