]> git.baikalelectronics.ru Git - kernel.git/commit
staging: typec: fusb302: Get max snk mv/ma/mw from device-properties
authorHans de Goede <hdegoede@redhat.com>
Wed, 30 Aug 2017 09:48:07 +0000 (11:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:23:12 +0000 (18:23 +0200)
commitbbfe7c21a62a41fd9b819d91cdb524318a777a32
tree68230104d482671fa071b74cb91a355a3a523670
parente2e3078f5a946cb96566dd70c6feee00d62b1574
staging: typec: fusb302: Get max snk mv/ma/mw from device-properties

This is board specific info so it should come from board config, such
as devicetree.

I've chosen to prefix these with "fcs," treating them as fusb302 driver
specific for now. We may want to revisit this and replace these with
properties which are part of a (to be written) generic type-c controller
devicetree binding.

Since this commit adds new dt-properties it also adds devicetree-bindings
documentation (which so far was absent for the fusb302 driver).

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: devicetree@vger.kernel.org
Cc: "Yueyao (Nathan) Zhu" <yueyao@google.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/fcs,fusb302.txt [new file with mode: 0644]
drivers/staging/typec/fusb302/TODO
drivers/staging/typec/fusb302/fusb302.c