Skip to content

Commit 73eff86

Browse files
Prashant MalaniEnric Balletbo i Serra
authored andcommitted
platform/chrome: cros-ec-typec: Cleanup use of check_features
cros_ec_check_features() now returns a boolean. Remove the double NOT operator since it's not required anymore. No functional changes are expected with this patch. Signed-off-by: Prashant Malani <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d50497c commit 73eff86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/platform/chrome/cros_ec_typec.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,9 +1116,8 @@ static int cros_typec_probe(struct platform_device *pdev)
11161116
}
11171117

11181118
ec_dev = dev_get_drvdata(&typec->ec->ec->dev);
1119-
typec->typec_cmd_supported = !!cros_ec_check_features(ec_dev, EC_FEATURE_TYPEC_CMD);
1120-
typec->needs_mux_ack = !!cros_ec_check_features(ec_dev,
1121-
EC_FEATURE_TYPEC_MUX_REQUIRE_AP_ACK);
1119+
typec->typec_cmd_supported = cros_ec_check_features(ec_dev, EC_FEATURE_TYPEC_CMD);
1120+
typec->needs_mux_ack = cros_ec_check_features(ec_dev, EC_FEATURE_TYPEC_MUX_REQUIRE_AP_ACK);
11221121

11231122
ret = cros_typec_ec_command(typec, 0, EC_CMD_USB_PD_PORTS, NULL, 0,
11241123
&resp, sizeof(resp));

0 commit comments

Comments
 (0)