Skip to content

Commit ed783ab

Browse files
iavclaude
andcommitted
rockchip64-6.18: typec dp extcon: fix clang -Wincompatible-pointer-types-discards-qualifiers
extcon_get_edev_by_phandle() takes struct device * (non-const), but the patch declared the local as const struct device *. Drop the const: &dp->alt->dev is a non-const pointer anyway, and the 7.1/7.2 copies of this patch already use the non-const form. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9e7eae8 commit ed783ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

patch/kernel/archive/rockchip64-6.18/rk3399-usbc-notify-typec-dp-hpd-state-through-extcon.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ index 111111111111..222222222222 100644
3131
+/* Notify DP hotplug change via extcon. Current rockchip cdn-dp driver need this signal
3232
+ * to reset DP link. */
3333
+static void dp_altmode_update_extcon_hpd_status(struct dp_altmode *dp, bool new_hpd) {
34-
+ const struct device *dev = &dp->alt->dev;
34+
+ struct device *dev = &dp->alt->dev;
3535
+ struct extcon_dev* edev = NULL;
3636
+ int ret;
3737
+

0 commit comments

Comments
 (0)