usb: typec: ucsi: Remove struct ucsi_control
That data structure was used for constructing the commands before executing them, but it was never really useful. Using the structure just complicated the driver. The commands are 64-bit wide, so it is enough to simply fill a u64 variable. No data structures needed. This simplifies the driver considerable and makes it much easier to for example add support for big endian systems later on. Change-Id: I3533a2c24c3a91ea51e2ebdefe6bc2351223ca0b Signed-off-by:Heikki Krogerus <heikki.krogerus@linux.intel.com> Tested-by:
Ajay Gupta <ajayg@nvidia.com> Reviewed-by:
Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20191104142435.29960-16-heikki.krogerus@linux.intel.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Git-commit: 470ce43a1a810117f09aa4bcad6ca2be6b29c8d1 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git Signed-off-by:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment