Skip to content

Commit

Permalink
spi: dln2: Fix open brace following function definitions go on the ne…
Browse files Browse the repository at this point in the history
…xt line

Fix checkpatch error:

  ERROR: open brace '{' following function definitions go on the next line
  torvalds#545: FILE: spi-dln2.c:545:
  +static int dln2_spi_rdwr(struct dln2_spi *dln2, const u8 *tx_data,
  +			 u8 *rx_data, u16 data_len, u8 attr) {

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1616566602-13894-7-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jay Fang authored and broonie committed Mar 24, 2021
1 parent 99b3a36 commit 211f8a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/spi/spi-dln2.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ static int dln2_spi_read_write_one(struct dln2_spi *dln2, const u8 *tx_data,
* single ones due to device buffer constraints.
*/
static int dln2_spi_rdwr(struct dln2_spi *dln2, const u8 *tx_data,
u8 *rx_data, u16 data_len, u8 attr) {
u8 *rx_data, u16 data_len, u8 attr)
{
int ret;
u16 len;
u8 temp_attr;
Expand Down

0 comments on commit 211f8a0

Please sign in to comment.