platform/chrome: cros_ec_proto: assign buffer size from protocol info
authorTzung-Bi Shih <tzungbi@kernel.org>
Thu, 9 Jun 2022 08:49:40 +0000 (08:49 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Fri, 10 Jun 2022 02:31:42 +0000 (02:31 +0000)
commite796c0c4b1ada2e038b22215d38ddc97153de053
tree7b5236b976f7dc836c14a0f4bd52c0c8e36cb1e3
parent3db0c9e5de7bd9dbe52580eb9752b2b3049e38da
platform/chrome: cros_ec_proto: assign buffer size from protocol info

`din_size` is calculated from `ec_dev->max_response`.
`ec_dev->max_response` is further calculated from the protocol info.

To make it clear, assign `din_size` and `dout_size` from protocol info
directly.

Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220609084957.3684698-5-tzungbi@kernel.org
drivers/platform/chrome/cros_ec_proto.c