platform/chrome: wilco_ec: convert stream-like files from nonseekable_open -> stream_open
PATCH 1/1 platform/chrome: wilco_ec: convert stream-like files from nonseekable_open -> stream_open
Eliminate the following coccicheck warning:
./drivers/platform/chrome/wilco_ec/telemetry.c:259:1-17: WARNING:telem_fops: .read() and .write() have stream semantic; safe to change nonseekable_open -> stream_open.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/platform/chrome/wilco_ec/telemetry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/chrome/wilco_ec/telemetry.c +1 -1
@@ -256,7 +256,7 @@ static int telem_open(struct inode *inode, struct file *filp) sess_data->dev_data = dev_data; sess_data->has_msg = false; -nonseekable_open (inode, filp); +stream_open (inode, filp); filp->private_data = sess_data;return 0 ;
Signature · 1 line
1.8.3.1
Enric Balletbo i Serra
AppliedQuoted 4 lines · Yang Li
Eliminate the following coccicheck warning:
./drivers/platform/chrome/wilco_ec/telemetry.c:259:1-17: WARNING:telem_fops: .read() and .write() have stream semantic; safe to changenonseekable_open->stream_open.
Applied, thanks!
[1/1] platform/chrome: wilco_ec: convert stream-like files from nonseekable_open -> stream_open
commit: dbc334fb411f2e87ca0e812dc7ba13464aa89504
Best regards,
Signature · 1 line
Enric Balletbo i Serra <[email protected]>