Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: uapi: pisp_be_config: Drop BIT() from uAPI

The pisp_be_config.h uAPI header file contains a bit-field definition
that uses the BIT() helper macro.

As the BIT() identifier is not defined in userspace, drop it from the
uAPI header.

Fixes: c6c49bac8770 ("media: uapi: Add Raspberry Pi PiSP Back End uAPI")
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Jacopo Mondi and committed by
Hans Verkuil
79cf9c6e a7351f0d

+1 -1
+1 -1
include/uapi/linux/media/raspberrypi/pisp_be_config.h
··· 146 146 */ 147 147 struct pisp_be_geq_config { 148 148 __u16 offset; 149 - #define PISP_BE_GEQ_SHARPER BIT(15) 149 + #define PISP_BE_GEQ_SHARPER (1U << 15) 150 150 #define PISP_BE_GEQ_SLOPE ((1 << 10) - 1) 151 151 /* top bit is the "sharper" flag, slope value is bottom 10 bits */ 152 152 __u16 slope_sharper;