Re: [PATCH] gpio: mockup: use simple_read_from_buffer() in debugfs read callback

2019-03-28 Thread Bartosz Golaszewski
czw., 28 mar 2019 o 14:11 Mukesh Ojha napisaƂ(a): > > > On 3/28/2019 4:30 PM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Calling read() for a single byte read will return 2 currently. Use > > simple_read_from_buffer() which correctly handles all sizes. > > > > Fixes: 2a9e274

Re: [PATCH] gpio: mockup: use simple_read_from_buffer() in debugfs read callback

2019-03-28 Thread Mukesh Ojha
On 3/28/2019 4:30 PM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski Calling read() for a single byte read will return 2 currently. Use simple_read_from_buffer() which correctly handles all sizes. Fixes: 2a9e27408e12 ("gpio: mockup: rework debugfs interface") Signed-off-by: Bartosz Gol

[PATCH] gpio: mockup: use simple_read_from_buffer() in debugfs read callback

2019-03-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Calling read() for a single byte read will return 2 currently. Use simple_read_from_buffer() which correctly handles all sizes. Fixes: 2a9e27408e12 ("gpio: mockup: rework debugfs interface") Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 7 +--