All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] spi: struct spi_device constification
@ 2023-03-13 10:58 Geert Uytterhoeven
  2023-03-13 10:58 ` [PATCH 1/6] mfd: rsmu_spi: Remove unneeded casts of void * Geert Uytterhoeven
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2023-03-13 10:58 UTC (permalink / raw)
  To: Mark Brown, Min Li, Lee Jones, Vladimir Oltean,
	Amit Kumar Mahapatra, Michal Simek
  Cc: linux-spi, linux-renesas-soc, linux-kernel, Geert Uytterhoeven

	Hi all,

After noticing new cases of casting away constness, I went over all
spi_get_*() functions and their callers, and made the following changes:
  1. Make all pointer parameters const where possible,
  2. Remove unneeded casts, some not even related to constness.

Patches 1-5 do not have any dependencies.
Patch 6 depends on patch 5 (and current spi/for-next).

Thanks for your comments!

Geert Uytterhoeven (6):
  mfd: rsmu_spi: Remove unneeded casts of void *
  spi: fsl-dspi: Remove unneeded cast to same type
  spi: Constify spi_get_ctldata()'s spi parameter
  spi: Constify spi_get_drvdata()'s spi parameter
  spi: Constify spi parameters of chip select APIs
  spi: sh-msiof: Remove casts to drop constness

 drivers/mfd/rsmu_spi.c     | 4 ++--
 drivers/spi/spi-fsl-dspi.c | 2 +-
 drivers/spi/spi-sh-msiof.c | 4 ++--
 include/linux/spi/spi.h    | 8 ++++----
 4 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

end of thread, other threads:[~2023-03-16 16:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-13 10:58 [PATCH 0/6] spi: struct spi_device constification Geert Uytterhoeven
2023-03-13 10:58 ` [PATCH 1/6] mfd: rsmu_spi: Remove unneeded casts of void * Geert Uytterhoeven
2023-03-16 16:13   ` Lee Jones
2023-03-13 10:58 ` [PATCH 2/6] spi: fsl-dspi: Remove unneeded cast to same type Geert Uytterhoeven
2023-03-13 10:58 ` [PATCH 3/6] spi: Constify spi_get_ctldata()'s spi parameter Geert Uytterhoeven
2023-03-13 10:58 ` [PATCH 4/6] spi: Constify spi_get_drvdata()'s " Geert Uytterhoeven
2023-03-13 10:58 ` [PATCH 5/6] spi: Constify spi parameters of chip select APIs Geert Uytterhoeven
2023-03-13 10:58 ` [PATCH 6/6] spi: sh-msiof: Remove casts to drop constness Geert Uytterhoeven
2023-03-13 18:20 ` (subset) [PATCH 0/6] spi: struct spi_device constification Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.