diff options
author | Fabio Estevam <festevam@gmail.com> | 2022-05-26 03:09:14 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-06-08 22:19:16 +0200 |
commit | 3d43273d7d1e1a5374d531e901d3c537b4c97bbf (patch) | |
tree | 007943d27b10a5486fbcdd10f38c21d38e610801 /drivers/i2c | |
parent | i2c: qcom-cci: simplify access to bus data structure (diff) | |
download | linux-3d43273d7d1e1a5374d531e901d3c537b4c97bbf.tar.xz linux-3d43273d7d1e1a5374d531e901d3c537b4c97bbf.zip |
i2c: mxs: Silence a clang warning
Change the of_device_get_match_data() cast to (uintptr_t)
to silence the following clang warning:
drivers/i2c/busses/i2c-mxs.c:802:18: warning: cast to smaller integer type 'enum mxs_i2c_devtype' from 'const void *' [-Wvoid-pointer-to-enum-cast]
Reported-by: kernel test robot <lkp@intel.com>
Fixes: c32abd8b5691 ("i2c: mxs: Remove unneeded platform_device_id")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-mxs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 864a3f1bd4e1..68f67d084c63 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -799,7 +799,7 @@ static int mxs_i2c_probe(struct platform_device *pdev) if (!i2c) return -ENOMEM; - i2c->dev_type = (enum mxs_i2c_devtype)of_device_get_match_data(&pdev->dev); + i2c->dev_type = (uintptr_t)of_device_get_match_data(&pdev->dev); i2c->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(i2c->regs)) |