Skip to content

Commit cd94eae

Browse files
committed
clk: adi: clk-ad9545: remove iio from includes
IIO is not needed at all for the ad9545 device (it's a clock provider). Remove it. While at it, added mod_devicetable.h for the id tables and placed clk-ad9545.h in it's proper location. Signed-off-by: Nuno Sa <nuno.sa@analog.com>
1 parent a532fcc commit cd94eae

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

drivers/clk/adi/clk-ad9545-i2c.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
* Copyright 2020 Analog Devices Inc.
66
*/
77

8-
#include "clk-ad9545.h"
98
#include <linux/device.h>
109
#include <linux/err.h>
1110
#include <linux/i2c.h>
12-
#include <linux/iio/iio.h>
1311
#include <linux/module.h>
12+
#include <linux/mod_devicetable.h>
1413
#include <linux/regmap.h>
1514
#include <linux/slab.h>
1615

16+
#include "clk-ad9545.h"
17+
1718
static const struct regmap_config ad9545_regmap_config = {
1819
.reg_bits = 16,
1920
.val_bits = 8,

drivers/clk/adi/clk-ad9545-spi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
* Copyright 2020 Analog Devices Inc.
66
*/
77

8-
#include "clk-ad9545.h"
98
#include <linux/bitfield.h>
109
#include <linux/device.h>
1110
#include <linux/err.h>
12-
#include <linux/iio/iio.h>
1311
#include <linux/module.h>
12+
#include <linux/mod_devicetable.h>
1413
#include <linux/regmap.h>
1514
#include <linux/slab.h>
1615
#include <linux/spi/spi.h>
1716

17+
#include "clk-ad9545.h"
18+
1819
#define AD9545_CONFIG_0 0x0000
1920

2021
#define AD9545_4WIRE_SPI 0x3

0 commit comments

Comments
 (0)