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

spi: bitbang: Fix checkpatch issue

Fix the following checkpatch warnings

WARNING: sizeof *cs should be sizeof(*cs)
WARNING: please, no space before tabs
WARNING: space prohibited between function name and open parenthesis '('
WARNING: line over 80 characters

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Jingoo Han and committed by
Mark Brown
cff93c58 702a4879

+7 -6
+7 -6
drivers/spi/spi-bitbang.c
··· 191 191 bitbang = spi_master_get_devdata(spi->master); 192 192 193 193 if (!cs) { 194 - cs = kzalloc(sizeof *cs, GFP_KERNEL); 194 + cs = kzalloc(sizeof(*cs), GFP_KERNEL); 195 195 if (!cs) 196 196 return -ENOMEM; 197 197 spi->controller_state = cs; ··· 258 258 259 259 static int spi_bitbang_prepare_hardware(struct spi_master *spi) 260 260 { 261 - struct spi_bitbang *bitbang; 261 + struct spi_bitbang *bitbang; 262 262 unsigned long flags; 263 263 264 264 bitbang = spi_master_get_devdata(spi); ··· 273 273 static int spi_bitbang_transfer_one(struct spi_master *master, 274 274 struct spi_message *m) 275 275 { 276 - struct spi_bitbang *bitbang; 276 + struct spi_bitbang *bitbang; 277 277 unsigned nsecs; 278 278 struct spi_transfer *t = NULL; 279 279 unsigned cs_change; ··· 292 292 cs_change = 1; 293 293 status = 0; 294 294 295 - list_for_each_entry (t, &m->transfers, transfer_list) { 295 + list_for_each_entry(t, &m->transfers, transfer_list) { 296 296 297 297 /* override speed or wordsize? */ 298 298 if (t->speed_hz || t->bits_per_word) ··· 349 349 if (t->delay_usecs) 350 350 udelay(t->delay_usecs); 351 351 352 - if (cs_change && !list_is_last(&t->transfer_list, &m->transfers)) { 352 + if (cs_change && 353 + !list_is_last(&t->transfer_list, &m->transfers)) { 353 354 /* sometimes a short mid-message deselect of the chip 354 355 * may be needed to terminate a mode or command 355 356 */ ··· 379 378 380 379 static int spi_bitbang_unprepare_hardware(struct spi_master *spi) 381 380 { 382 - struct spi_bitbang *bitbang; 381 + struct spi_bitbang *bitbang; 383 382 unsigned long flags; 384 383 385 384 bitbang = spi_master_get_devdata(spi);