lkml.org 
[lkml]   [2022]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] spi: spidev_test: Warn when the mode is not the requested mode
On Mon, Jun 13, 2022 at 12:39:41AM -0500, David Fries wrote:

> + /* Drivers can reject some mode bits without returning an error.
> + * Read the current value to identify what mode it is in, and if it
> + * differs from the requested mode, warn the user.
> + */
> + if(request != mode)

Please try to follow the kernel coding style - both the if( and the
comment don't.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-06-13 17:05    [W:0.032 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site