extcon: Make static analyzer happy about union assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 27 Aug 2018 15:35:51 +0000 (18:35 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 28 Aug 2018 02:21:14 +0000 (11:21 +0900)
commitcff7499d7eb4196f21fdd1bf643aad12d846ee5d
treeecc8f2d12fba91e27fd50c74668bfd87bddd024b
parent1213a366817299ed91fcb4e738c057a9ac4c8666
extcon: Make static analyzer happy about union assignment

When assign unions we need to supply non-scalar value, otherwise
static analyzer is not happy:

CHECK   drivers/extcon/extcon.c
drivers/extcon/extcon.c:631:22: warning: cast to non-scalar

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c