Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cff93c58 authored by Jingoo Han's avatar Jingoo Han Committed by Mark Brown
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 702a4879
Loading
Loading
Loading
Loading
+7 −6
Original line number Original line Diff line number Diff line
@@ -191,7 +191,7 @@ int spi_bitbang_setup(struct spi_device *spi)
	bitbang = spi_master_get_devdata(spi->master);
	bitbang = spi_master_get_devdata(spi->master);


	if (!cs) {
	if (!cs) {
		cs = kzalloc(sizeof *cs, GFP_KERNEL);
		cs = kzalloc(sizeof(*cs), GFP_KERNEL);
		if (!cs)
		if (!cs)
			return -ENOMEM;
			return -ENOMEM;
		spi->controller_state = cs;
		spi->controller_state = cs;
@@ -349,7 +349,8 @@ static int spi_bitbang_transfer_one(struct spi_master *master,
		if (t->delay_usecs)
		if (t->delay_usecs)
			udelay(t->delay_usecs);
			udelay(t->delay_usecs);


		if (cs_change && !list_is_last(&t->transfer_list, &m->transfers)) {
		if (cs_change &&
		    !list_is_last(&t->transfer_list, &m->transfers)) {
			/* sometimes a short mid-message deselect of the chip
			/* sometimes a short mid-message deselect of the chip
			 * may be needed to terminate a mode or command
			 * may be needed to terminate a mode or command
			 */
			 */