linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gmsl: Use unsigned constants
@ 2020-09-22 15:52 Kieran Bingham
  2020-09-22 15:52 ` [PATCH 1/2] media: i2c: max9286: " Kieran Bingham
  2020-09-22 15:52 ` [PATCH 2/2] media: i2c: max9271: " Kieran Bingham
  0 siblings, 2 replies; 6+ messages in thread
From: Kieran Bingham @ 2020-09-22 15:52 UTC (permalink / raw)
  To: sakari.ailus, linux-media, linux-renesas-soc; +Cc: Kieran Bingham

During pre-integration reviews of the GMSL (MAX9286/MAX9271) patches,
one comment was to mark the constants used in bitfield shifts as
explicitly unsigned. This ensures that any use of a register write that
updates bit 31 is operated correctly.

Whilst none of these register shifts affect bit 31 in any of the
registers, update the values to follow best practices and ensure
consistency if further additions are made.

Please note, this does not remove or clean up the 'Prefer BIT' check
patch warnings, as the use of the BIT macro is still not applicable to
these entries.

Kieran Bingham (2):
  media: i2c: max9286: Use unsigned constants
  media: i2c: max9271: Use unsigned constants

 drivers/media/i2c/max9271.h | 60 +++++++++++------------
 drivers/media/i2c/max9286.c | 96 ++++++++++++++++++-------------------
 2 files changed, 78 insertions(+), 78 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-23 11:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22 15:52 [PATCH 0/2] gmsl: Use unsigned constants Kieran Bingham
2020-09-22 15:52 ` [PATCH 1/2] media: i2c: max9286: " Kieran Bingham
2020-09-23  7:42   ` Geert Uytterhoeven
2020-09-23  9:41     ` Kieran Bingham
2020-09-23 11:51       ` Geert Uytterhoeven
2020-09-22 15:52 ` [PATCH 2/2] media: i2c: max9271: " Kieran Bingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).