staging: pi433: remove unused rf69_set_ook_threshold_step function
Function rf69_set_ook_threshold_step is unused and should be removed along with type enum thresholdStep which was used only by that function. Signed-off-by: Marcin Ciupak <marcin.s.ciupak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>hifive-unleashed-5.1
parent
b44badd30b
commit
418e175a99
|
@ -473,23 +473,6 @@ int rf69_set_ook_threshold_type(struct spi_device *spi, enum thresholdType thres
|
|||
}
|
||||
}
|
||||
|
||||
int rf69_set_ook_threshold_step(struct spi_device *spi, enum thresholdStep thresholdStep)
|
||||
{
|
||||
switch (thresholdStep) {
|
||||
case step_0_5db: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESSTEP, OOKPEAK_THRESHSTEP_0_5_DB);
|
||||
case step_1_0db: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESSTEP, OOKPEAK_THRESHSTEP_1_0_DB);
|
||||
case step_1_5db: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESSTEP, OOKPEAK_THRESHSTEP_1_5_DB);
|
||||
case step_2_0db: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESSTEP, OOKPEAK_THRESHSTEP_2_0_DB);
|
||||
case step_3_0db: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESSTEP, OOKPEAK_THRESHSTEP_3_0_DB);
|
||||
case step_4_0db: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESSTEP, OOKPEAK_THRESHSTEP_4_0_DB);
|
||||
case step_5_0db: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESSTEP, OOKPEAK_THRESHSTEP_5_0_DB);
|
||||
case step_6_0db: return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESSTEP, OOKPEAK_THRESHSTEP_6_0_DB);
|
||||
default:
|
||||
dev_dbg(&spi->dev, "set: illegal input param");
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
int rf69_set_ook_threshold_dec(struct spi_device *spi, enum thresholdDecrement thresholdDecrement)
|
||||
{
|
||||
switch (thresholdDecrement) {
|
||||
|
|
|
@ -44,7 +44,6 @@ int rf69_set_dc_cut_off_frequency_during_afc(struct spi_device *spi, enum dcc_pe
|
|||
int rf69_set_bandwidth(struct spi_device *spi, enum mantisse mantisse, u8 exponent);
|
||||
int rf69_set_bandwidth_during_afc(struct spi_device *spi, enum mantisse mantisse, u8 exponent);
|
||||
int rf69_set_ook_threshold_type(struct spi_device *spi, enum thresholdType thresholdType);
|
||||
int rf69_set_ook_threshold_step(struct spi_device *spi, enum thresholdStep thresholdStep);
|
||||
int rf69_set_ook_threshold_dec(struct spi_device *spi, enum thresholdDecrement thresholdDecrement);
|
||||
int rf69_set_dio_mapping(struct spi_device *spi, u8 DIONumber, u8 value);
|
||||
bool rf69_get_flag(struct spi_device *spi, enum flag flag);
|
||||
|
|
|
@ -99,17 +99,6 @@ enum thresholdType {
|
|||
average
|
||||
};
|
||||
|
||||
enum thresholdStep {
|
||||
step_0_5db,
|
||||
step_1_0db,
|
||||
step_1_5db,
|
||||
step_2_0db,
|
||||
step_3_0db,
|
||||
step_4_0db,
|
||||
step_5_0db,
|
||||
step_6_0db
|
||||
};
|
||||
|
||||
enum thresholdDecrement {
|
||||
dec_every8th,
|
||||
dec_every4th,
|
||||
|
|
Loading…
Reference in New Issue