Skip to content

Commit

Permalink
Replace macro function by static inline function in file iss.c
Browse files Browse the repository at this point in the history
Replace macro function by static inline function.
Issue suggested by Julia.

Signed-off-by: Aline Santana Cordeiro <alinesantanacordeiro@gmail.com>
  • Loading branch information
ascordeiro authored and intel-lab-lkp committed Apr 12, 2021
1 parent 4f4e664 commit 31032f2
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions drivers/staging/media/omap4iss/iss.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,24 @@
#include "iss.h"
#include "iss_regs.h"

#define ISS_PRINT_REGISTER(iss, name)\
dev_dbg(iss->dev, "###ISS " #name "=0x%08x\n", \
iss_reg_read(iss, OMAP4_ISS_MEM_TOP, ISS_##name))
static inline iss_print_register(iss, name)
{
dev_dbg(iss->dev, "###ISS " #name "=0x%08x\n",
iss_reg_read(iss, OMAP4_ISS_MEM_TOP, ISS_##name));
}

static void iss_print_status(struct iss_device *iss)
{
dev_dbg(iss->dev, "-------------ISS HL Register dump-------------\n");

ISS_PRINT_REGISTER(iss, HL_REVISION);
ISS_PRINT_REGISTER(iss, HL_SYSCONFIG);
ISS_PRINT_REGISTER(iss, HL_IRQSTATUS(5));
ISS_PRINT_REGISTER(iss, HL_IRQENABLE_SET(5));
ISS_PRINT_REGISTER(iss, HL_IRQENABLE_CLR(5));
ISS_PRINT_REGISTER(iss, CTRL);
ISS_PRINT_REGISTER(iss, CLKCTRL);
ISS_PRINT_REGISTER(iss, CLKSTAT);
iss_print_register(iss, HL_REVISION);
iss_print_register(iss, HL_SYSCONFIG);
iss_print_register(iss, HL_IRQSTATUS(5));
iss_print_register(iss, HL_IRQENABLE_SET(5));
iss_print_register(iss, HL_IRQENABLE_CLR(5));
iss_print_register(iss, CTRL);
iss_print_register(iss, CLKCTRL);
iss_print_register(iss, CLKSTAT);

dev_dbg(iss->dev, "-----------------------------------------------\n");
}
Expand Down

0 comments on commit 31032f2

Please sign in to comment.