diff options
author | Laurent Pinchart <[email protected]> | 2020-08-23 07:02:57 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2020-08-26 16:28:57 +0200 |
commit | bec2ddfd39f07ac2c1dec9fd5299424ad75c0a9d (patch) | |
tree | 1ab86483cff9fce147b9e18837b5b847d8efb226 /include/linux/fpga/fpga-mgr.h | |
parent | d012a7190fc1fd72ed48911e77ca97ba4521bccd (diff) |
media: ti-vpe: cal: Fix compilation on 32-bit ARM
When compiled on 32-bit ARM, the CAL driver fails with the FIELD_PREP()
macro complaining that the mask is not constant. While all callers of
the inline cal_write_field() function pass a constant mask, the mask
parameter itself is a variable, which likely doesn't please the
compiler.
Fix it by replacing FIELD_PREP() with a manual implementation.
Fixes: 50797fb30b95 ("media: ti-vpe: cal: Turn reg_(read|write)_field() into inline functions")
Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Sakari Ailus <[email protected]>
Reported-by: Sakari Ailus <[email protected]>
Reviewed-by: Tomi Valkeinen <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions