diff mbox

misc: fuse: fix dummy functions

Message ID 1402953115-32489-1-git-send-email-swarren@wwwdotorg.org (mailing list archive)
State New, archived
Headers show

Commit Message

Stephen Warren June 16, 2014, 9:11 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

The Tegra fuse header's dummy functions for the case where Tegra20 is
disabled are inconsistent with the correct prototypes, and have some
syntax errors. Fix these. While at it, fix the indentation level of
the dummy function bodies.

Fixes: 40969e30ad7c ("misc: fuse: Add efuse driver for Tegra")
Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
I intend to immediately apply this to Tegra's for-3.17/fuse-move branch.
---
 drivers/misc/fuse/tegra/fuse.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Peter De Schrijver June 17, 2014, 1:23 p.m. UTC | #1
On Mon, Jun 16, 2014 at 11:11:55PM +0200, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
> 
> The Tegra fuse header's dummy functions for the case where Tegra20 is
> disabled are inconsistent with the correct prototypes, and have some
> syntax errors. Fix these. While at it, fix the indentation level of
> the dummy function bodies.
> 
> Fixes: 40969e30ad7c ("misc: fuse: Add efuse driver for Tegra")
> Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
> I intend to immediately apply this to Tegra's for-3.17/fuse-move branch.
> ---

Acked-by:  Peter De Schrijver <pdeschrijver@nvidia.com>
diff mbox

Patch

diff --git a/drivers/misc/fuse/tegra/fuse.h b/drivers/misc/fuse/tegra/fuse.h
index b3442770df09..3a398bf3572c 100644
--- a/drivers/misc/fuse/tegra/fuse.h
+++ b/drivers/misc/fuse/tegra/fuse.h
@@ -38,14 +38,14 @@  void tegra20_init_fuse_early(void);
 u32 tegra20_fuse_early(const unsigned int offset);
 #else
 static inline void tegra20_init_speedo_data(struct tegra_sku_info *sku_info) {}
-static inline bool tegra20_spare_fuse_early(int spare_bit, void *fuse_base)
+static inline bool tegra20_spare_fuse_early(int spare_bit)
 {
-			return false;
+	return false;
 }
-static inline void tegra20_init_fuse_early(void);
-static inline tegra20_fuse_early(const unsigned int offset);
+static inline void tegra20_init_fuse_early(void) {}
+static inline u32 tegra20_fuse_early(const unsigned int offset)
 {
-			return 0;
+	return 0;
 }
 #endif