staging: pi433: fix CamelCase for packetFormat enum

Fixes checkpatch warnings:

  CHECK: Avoid CamelCase: <packetFormat>
  CHECK: Avoid CamelCase: <packetLengthFix>
  CHECK: Avoid CamelCase: <packetLengthVar>

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Valentin Vidic 2018-03-05 08:02:14 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель e0c12b6fff
Коммит c436ef3b9a
4 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -222,11 +222,11 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg)
return ret; return ret;
} }
if (rx_cfg->enable_length_byte == OPTION_ON) { if (rx_cfg->enable_length_byte == OPTION_ON) {
ret = rf69_set_packet_format(dev->spi, packetLengthVar); ret = rf69_set_packet_format(dev->spi, packet_length_var);
if (ret < 0) if (ret < 0)
return ret; return ret;
} else { } else {
ret = rf69_set_packet_format(dev->spi, packetLengthFix); ret = rf69_set_packet_format(dev->spi, packet_length_fix);
if (ret < 0) if (ret < 0)
return ret; return ret;
} }
@ -337,11 +337,11 @@ rf69_set_tx_cfg(struct pi433_device *dev, struct pi433_tx_cfg *tx_cfg)
} }
if (tx_cfg->enable_length_byte == OPTION_ON) { if (tx_cfg->enable_length_byte == OPTION_ON) {
ret = rf69_set_packet_format(dev->spi, packetLengthVar); ret = rf69_set_packet_format(dev->spi, packet_length_var);
if (ret < 0) if (ret < 0)
return ret; return ret;
} else { } else {
ret = rf69_set_packet_format(dev->spi, packetLengthFix); ret = rf69_set_packet_format(dev->spi, packet_length_fix);
if (ret < 0) if (ret < 0)
return ret; return ret;
} }

Просмотреть файл

@ -661,12 +661,12 @@ int rf69_set_sync_values(struct spi_device *spi, u8 sync_values[8])
return retval; return retval;
} }
int rf69_set_packet_format(struct spi_device *spi, enum packetFormat packetFormat) int rf69_set_packet_format(struct spi_device *spi, enum packet_format packet_format)
{ {
switch (packetFormat) { switch (packet_format) {
case packetLengthVar: case packet_length_var:
return rf69_set_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_PAKET_FORMAT_VARIABLE); return rf69_set_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_PAKET_FORMAT_VARIABLE);
case packetLengthFix: case packet_length_fix:
return rf69_clear_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_PAKET_FORMAT_VARIABLE); return rf69_clear_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_PAKET_FORMAT_VARIABLE);
default: default:
dev_dbg(&spi->dev, "set: illegal input param"); dev_dbg(&spi->dev, "set: illegal input param");

Просмотреть файл

@ -50,7 +50,7 @@ int rf69_disable_sync(struct spi_device *spi);
int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifo_fill_condition fifo_fill_condition); int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifo_fill_condition fifo_fill_condition);
int rf69_set_sync_size(struct spi_device *spi, u8 sync_size); int rf69_set_sync_size(struct spi_device *spi, u8 sync_size);
int rf69_set_sync_values(struct spi_device *spi, u8 sync_values[8]); int rf69_set_sync_values(struct spi_device *spi, u8 sync_values[8]);
int rf69_set_packet_format(struct spi_device *spi, enum packetFormat packetFormat); int rf69_set_packet_format(struct spi_device *spi, enum packet_format packet_format);
int rf69_enable_crc(struct spi_device *spi); int rf69_enable_crc(struct spi_device *spi);
int rf69_disable_crc(struct spi_device *spi); int rf69_disable_crc(struct spi_device *spi);
int rf69_set_address_filtering(struct spi_device *spi, enum address_filtering address_filtering); int rf69_set_address_filtering(struct spi_device *spi, enum address_filtering address_filtering);

Просмотреть файл

@ -118,9 +118,9 @@ enum fifo_fill_condition {
always always
}; };
enum packetFormat { enum packet_format {
packetLengthFix, packet_length_fix,
packetLengthVar packet_length_var
}; };
enum tx_start_condition { enum tx_start_condition {