RE: [PATCH v6] mtd:nor:timeout:fix do_write_buffer() timeout error
From: Bean Huo
Date: Wed Jul 16 2014 - 20:54:27 EST
> Hi Bean,
>> + cfi->chips[i].buffer_write_time_max =
>> + ((cfi->chips[i].buffer_write_time_max>= 2000)
>> + ? cfi->chips[i].buffer_write_time_max : 2000);
>
> This should just use the 'max()' macro, from <linux/kernel.h>.
> I have just fixed up your patch myself, to use max() and to improve some
> of the language. Let me know if the below works for you.
hi,Brian
Thanks once again.I test and it works Ok.It can be accepted now? --
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/