Skip to content

Commit 5ceeabb

Browse files
author
Wolfram Sang
committed
Merge tag 'i2c-host-fixes-6.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-current
An unused const variable kind of error has been fixed by placing the definition of icr_bits[] inside the ifdef block where it is used.
2 parents 39cd87c + 9519777 commit 5ceeabb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-pxa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ static void decode_ISR(unsigned int val)
324324
decode_bits(KERN_DEBUG "ISR", isr_bits, ARRAY_SIZE(isr_bits), val);
325325
}
326326

327+
#ifdef CONFIG_I2C_PXA_SLAVE
327328
static const struct bits icr_bits[] = {
328329
PXA_BIT(ICR_START, "START", NULL),
329330
PXA_BIT(ICR_STOP, "STOP", NULL),
@@ -342,7 +343,6 @@ static const struct bits icr_bits[] = {
342343
PXA_BIT(ICR_UR, "UR", "ur"),
343344
};
344345

345-
#ifdef CONFIG_I2C_PXA_SLAVE
346346
static void decode_ICR(unsigned int val)
347347
{
348348
decode_bits(KERN_DEBUG "ICR", icr_bits, ARRAY_SIZE(icr_bits), val);

0 commit comments

Comments
 (0)