Re: [PATCH] i2c: algo-bit: Move debug variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 21, 2018 at 9:49 AM, Wolfram Sang <wsa@xxxxxxxxxxxxx> wrote:
> On Fri, Feb 16, 2018 at 01:44:55PM +0100, Linus Walleij wrote:
>> The variable "i2c_debug" is in a real weird place. If DEBUG
>> happens to be defined (because someone wants to do debugging)
>> the macro bit_dbg() is already using it some lines up in
>> the code, so compilation will fail.
>
> ? This just defines the bit_dbg macro which will not be used until
> i2c_debug gets defined, too. It compiles fine for me. Am I missing
> something?

I guess I just did something wrong.

I tested now and it works fine.

>> After this patch, it is possible to define DEBUG and then
>> pass a debug level to the module with the i2c_debug
>> parameter, which is probably what is intended.
>
> We could still move it to reduce ifdeffery...

Feel free to apply with copyedited commit message!

Can also be dropped.

Yours,
Linus Walleij



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux