Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: typec: fusb302: Set max supply voltage to 5V

Anything higher then 5V may damage hardware not capable of it, so
the only sane default here is 5V. If a board is able to handle a
higher voltage that should come from board specific data such as
device-tree and not be hard coded into the fusb302 code.

Cc: "Yueyao (Nathan) Zhu" <yueyao@google.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hans de Goede and committed by
Greg Kroah-Hartman
9a8fc4dd ea62cfc7

+2 -2
+2 -2
drivers/staging/typec/fusb302/fusb302.c
··· 1187 1187 .nr_src_pdo = ARRAY_SIZE(src_pdo), 1188 1188 .snk_pdo = snk_pdo, 1189 1189 .nr_snk_pdo = ARRAY_SIZE(snk_pdo), 1190 - .max_snk_mv = 9000, 1190 + .max_snk_mv = 5000, 1191 1191 .max_snk_ma = 3000, 1192 - .max_snk_mw = 27000, 1192 + .max_snk_mw = 15000, 1193 1193 .operating_snk_mw = 2500, 1194 1194 .type = TYPEC_PORT_DRP, 1195 1195 .default_role = TYPEC_SINK,