Home
last modified time | relevance | path

Searched hist:"0 ffa0285052607513a29f529ddb5061c907fd8a6" (Results 1 – 3 of 3) sorted by relevance

/linux/include/linux/spi/
H A Dspi_bitbang.hdiff 0ffa0285052607513a29f529ddb5061c907fd8a6 Mon Feb 12 09:52:45 CET 2007 Hans-Peter Nilsson <hans-peter.nilsson@axis.com> [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>
H A Dspi.hdiff 0ffa0285052607513a29f529ddb5061c907fd8a6 Mon Feb 12 09:52:45 CET 2007 Hans-Peter Nilsson <hans-peter.nilsson@axis.com> [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>
/linux/drivers/spi/
H A Dspi.cdiff 0ffa0285052607513a29f529ddb5061c907fd8a6 Mon Feb 12 09:52:45 CET 2007 Hans-Peter Nilsson <hans-peter.nilsson@axis.com> [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>