Skip to content

Commit dc65546

Browse files
committed
misc: Kconfig: ensure adi-axi-data-offload.c compiled as module
As a bool, the driver cannot be compile as a module, even though the driver supports it. Signed-off-by: Jorge Marques <[email protected]>
1 parent e46c7cd commit dc65546

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

drivers/misc/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ config AD525X_DPOT_SPI
5151
module will be called ad525x_dpot-spi.
5252

5353
config ADI_AXI_DATA_OFFLOAD
54-
bool "support Analog Devices Data Offload Engine"
54+
tristate "support Analog Devices Data Offload Engine"
5555
depends on HAS_IOMEM
5656
depends on OF
5757
help

drivers/misc/adi-axi-data-offload.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,9 @@
1212

1313
struct axi_data_offload_state;
1414

15-
#ifdef CONFIG_ADI_AXI_DATA_OFFLOAD
16-
1715
int axi_data_offload_ctrl_bypass(struct axi_data_offload_state *st, bool en);
1816
int axi_data_offload_ctrl_oneshot(struct axi_data_offload_state *st, bool en);
1917

2018
struct axi_data_offload_state *devm_axi_data_offload_get_optional(struct device *source);
2119

22-
#else
23-
24-
static inline int axi_data_offload_ctrl_bypass(struct axi_data_offload_state *st, bool en)
25-
{
26-
return -ENODEV;
27-
}
28-
29-
static inline int axi_data_offload_ctrl_oneshot(struct axi_data_offload_state *st, bool en)
30-
{
31-
return -ENODEV;
32-
}
33-
34-
static inline struct
35-
axi_data_offload_state *devm_axi_data_offload_get_optional(struct device *source)
36-
{
37-
return NULL;
38-
}
39-
40-
#endif /* CONFIG_ADI_AXI_DATA_OFFLOAD */
41-
4220
#endif /* ADI_AXI_DATA_OFFLOAD_H_ */

0 commit comments

Comments
 (0)