staging: iio: ad5933: rename ext_clk_Hz -> ext_clk_hz
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Tue, 2 Oct 2018 11:57:57 +0000 (14:57 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 7 Oct 2018 15:52:41 +0000 (16:52 +0100)
The checkpatch script doesn't like camel-case names.
Renamed the variable.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/impedance-analyzer/ad5933.c

index a2370dd..8a920f6 100644 (file)
 
 /**
  * struct ad5933_platform_data - platform specific data
- * @ext_clk_Hz:                the external clock frequency in Hz, if not set
+ * @ext_clk_hz:                the external clock frequency in Hz, if not set
  *                     the driver uses the internal clock (16.776 MHz)
  * @vref_mv:           the external reference voltage in millivolt
  */
 
 struct ad5933_platform_data {
-       unsigned long                   ext_clk_Hz;
+       unsigned long                   ext_clk_hz;
        unsigned short                  vref_mv;
 };
 
@@ -726,8 +726,8 @@ static int ad5933_probe(struct i2c_client *client,
        else
                st->vref_mv = pdata->vref_mv;
 
-       if (pdata->ext_clk_Hz) {
-               st->mclk_hz = pdata->ext_clk_Hz;
+       if (pdata->ext_clk_hz) {
+               st->mclk_hz = pdata->ext_clk_hz;
                st->ctrl_lb = AD5933_CTRL_EXT_SYSCLK;
        } else {
                st->mclk_hz = AD5933_INT_OSC_FREQ_Hz;