Skip to content

Commit

Permalink
ssbi: Allow compilation as a module
Browse files Browse the repository at this point in the history
The ssbi driver's read/write entry points are protected with wrappers
in the case when the driver isn't enabled.  These wrappers don't make
any sense, since a client of the SSBI bus won't work without it.  Make
these just regular functions, so that the SSBI driver can be built as
a module.

Signed-off-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
David Brown authored and gregkh committed Mar 25, 2013
1 parent 7b67d56 commit 4a6692e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion drivers/ssbi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
menu "Qualcomm MSM SSBI bus support"

config MSM_SSBI
bool "Qualcomm Single-wire Serial Bus Interface (SSBI)"
tristate "Qualcomm Single-wire Serial Bus Interface (SSBI)"
help
If you say yes to this option, support will be included for the
built-in SSBI interface on Qualcomm MSM family processors.
Expand Down
11 changes: 0 additions & 11 deletions include/linux/msm_ssbi.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@ struct msm_ssbi_platform_data {
enum msm_ssbi_controller_type controller_type;
};

#ifdef CONFIG_MSM_SSBI
int msm_ssbi_write(struct device *dev, u16 addr, u8 *buf, int len);
int msm_ssbi_read(struct device *dev, u16 addr, u8 *buf, int len);
#else
static inline int msm_ssbi_write(struct device *dev, u16 addr, u8 *buf, int len)
{
return -ENXIO;
}
static inline int msm_ssbi_read(struct device *dev, u16 addr, u8 *buf, int len)
{
return -ENXIO;
}
#endif
#endif

0 comments on commit 4a6692e

Please sign in to comment.