Re: [PATCH v2 08/15] media: intel/ipu6: add IPU6 CSI2 receiver v4l2 sub-device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 08, 2023 at 04:00:02PM +0100, Andreas Helbech Kleist wrote:
> On Wed, 2023-11-08 at 14:50 +0000, Cao, Bingbu wrote:

...

> Now we're talking about casts. There is a cast to int32_t, but the rest
> of the code uses the s32/u32 typedefs. I don't know if one or the other
> is recommended for new code, but I think it should at least be
> consistent across the driver.

s32/u32 are preferable in the kernel code.

Also if you need to extend the sign bit, we have sign_extendXX() helpers.

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux