android_kernel_xiaomi_sm8350/include/linux/spi
Hans-Peter Nilsson 0ffa028505 [PATCH] SPI cleanup() method param becomes non-const
I'd like to assign NULL to kfree()d members of a structure.  I can't do
that without ugly casting (see the PXA patch) when the structure pointed to
is const-qualified.  I don't really see a reason why the cleanup method
isn't allowed to alter the object it should clean up.  :-)

No, I didn't test the PXA patch, but I verified that the NULL-assignment
doesn't stop me from doing rmmod/insmodding my own spi_bitbang-based
driver.

Signed-off-by: Hans-Peter Nilsson <hp@axis.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-12 09:48:31 -08:00
..
ads7846.h Input: ads7846 - optionally leave Vref on during differential measurements 2007-01-18 00:45:21 -05:00
flash.h
spi_bitbang.h [PATCH] SPI cleanup() method param becomes non-const 2007-02-12 09:48:31 -08:00
spi.h [PATCH] SPI cleanup() method param becomes non-const 2007-02-12 09:48:31 -08:00