Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: geni-qcom: Drop unused msg parameter from timeout handlers

The timeout helpers (handle_se_timeout() and handle_gpi_timeout())
took a 'struct spi_message *msg' that was never used. Remove this
parameter and adjust the callers to simplify the interfaces.

Signed-off-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20260204162854.1206323-4-praveen.talari@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Praveen Talari and committed by
Mark Brown
9934383f 96e04164

+4 -5
+4 -5
drivers/spi/spi-geni-qcom.c
··· 146 146 return ret; 147 147 } 148 148 149 - static void handle_se_timeout(struct spi_controller *spi, 150 - struct spi_message *msg) 149 + static void handle_se_timeout(struct spi_controller *spi) 151 150 { 152 151 struct spi_geni_master *mas = spi_controller_get_devdata(spi); 153 152 unsigned long time_left; ··· 221 222 } 222 223 } 223 224 224 - static void handle_gpi_timeout(struct spi_controller *spi, struct spi_message *msg) 225 + static void handle_gpi_timeout(struct spi_controller *spi) 225 226 { 226 227 struct spi_geni_master *mas = spi_controller_get_devdata(spi); 227 228 ··· 236 237 switch (mas->cur_xfer_mode) { 237 238 case GENI_SE_FIFO: 238 239 case GENI_SE_DMA: 239 - handle_se_timeout(spi, msg); 240 + handle_se_timeout(spi); 240 241 break; 241 242 case GENI_GPI_DMA: 242 - handle_gpi_timeout(spi, msg); 243 + handle_gpi_timeout(spi); 243 244 break; 244 245 default: 245 246 dev_err(mas->dev, "Abort on Mode:%d not supported", mas->cur_xfer_mode);