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. -----BEGIN PGP SIGNATURE----- iIwEABYIADQWIQScDfrjQa34uOld1VLaeAVmJtMtbgUCZhCfYhYcYW5kaS5zaHl0 aUBrZXJuZWwub3JnAAoJENp4BWYm0y1uCtQA/jR4l/LDLS4Fvm6OBvot9TffNuc+ 5GlbryfobPxh2EakAP9Kk2LSE5LLCo6hnVFnsr/631/GToB88hQbs+dj6RopDg== =dmf5 -----END PGP SIGNATURE----- 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.
This commit is contained in:
commit
5ceeabb0eb
|
@ -324,6 +324,7 @@ static void decode_ISR(unsigned int val)
|
|||
decode_bits(KERN_DEBUG "ISR", isr_bits, ARRAY_SIZE(isr_bits), val);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_I2C_PXA_SLAVE
|
||||
static const struct bits icr_bits[] = {
|
||||
PXA_BIT(ICR_START, "START", NULL),
|
||||
PXA_BIT(ICR_STOP, "STOP", NULL),
|
||||
|
@ -342,7 +343,6 @@ static const struct bits icr_bits[] = {
|
|||
PXA_BIT(ICR_UR, "UR", "ur"),
|
||||
};
|
||||
|
||||
#ifdef CONFIG_I2C_PXA_SLAVE
|
||||
static void decode_ICR(unsigned int val)
|
||||
{
|
||||
decode_bits(KERN_DEBUG "ICR", icr_bits, ARRAY_SIZE(icr_bits), val);
|
||||
|
|
Loading…
Reference in New Issue