Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7184aa9d authored by Ebru Akagunduz's avatar Ebru Akagunduz Committed by Greg Kroah-Hartman
Browse files

Staging: cxt1e1: Fix use of volatile is usually wrong in comet.c



Fix checkpatch.pl issues with use of volatile is
usually wrong in comet.c

Signed-off-by: default avatarEbru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0d894758
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -456,7 +456,7 @@ static void
WrtRcvEqualizerTbl(ci_t *ci, struct s_comet_reg *comet, u_int32_t *table)
WrtRcvEqualizerTbl(ci_t *ci, struct s_comet_reg *comet, u_int32_t *table)
{
{
	u_int32_t   ramaddr;
	u_int32_t   ramaddr;
	volatile u_int32_t value;
	u_int32_t value;


	for (ramaddr = 0; ramaddr < 256; ramaddr++) {
	for (ramaddr = 0; ramaddr < 256; ramaddr++) {
		/*** the following lines are per Errata 7, 2.5 ***/
		/*** the following lines are per Errata 7, 2.5 ***/
@@ -524,7 +524,7 @@ WrtRcvEqualizerTbl(ci_t *ci, struct s_comet_reg *comet, u_int32_t *table)
static void
static void
SetPwrLevel(struct s_comet_reg *comet)
SetPwrLevel(struct s_comet_reg *comet)
{
{
	volatile u_int32_t temp;
	u_int32_t temp;


/*
/*
**    Algorithm to Balance the Power Distribution of Ttip Tring
**    Algorithm to Balance the Power Distribution of Ttip Tring
@@ -566,7 +566,7 @@ SetPwrLevel(struct s_comet_reg *comet)
static void
static void
SetCometOps(struct s_comet_reg *comet)
SetCometOps(struct s_comet_reg *comet)
{
{
	volatile u_int8_t rd_value;
	u_int8_t rd_value;


	if (comet == mConfig.C4Func1Base + (COMET0_OFFSET >> 2)) {
	if (comet == mConfig.C4Func1Base + (COMET0_OFFSET >> 2)) {
		/* read the BRIF Configuration */
		/* read the BRIF Configuration */