Commit 417218a
committed
fbdev/ssd1307fb: Generate deferred I/O ops
Use the existing generator macros to create deferred-I/O helpers
for ssd1307fb and set them in the fb_ops structure. Functions
for damage handling on memory ranges and areas are provided by
the driver.
Ssd1307fb's implementation of fb_write writes to system memory,
so the generated code can use the respective helper internally.
This also fixes a long-standing bug where fb_write returned an
errno code instead of the number of written bytes. See the commit
message of commit 921b738 ("fbdev: Return number of bytes
read or written") for more details.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230706151432.20674-9-tzimmermann@suse.de1 parent 4705f37 commit 417218a
1 file changed
Lines changed: 11 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | 295 | | |
333 | 296 | | |
334 | 297 | | |
| |||
339 | 302 | | |
340 | 303 | | |
341 | 304 | | |
342 | | - | |
| 305 | + | |
343 | 306 | | |
344 | 307 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | 308 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 309 | + | |
356 | 310 | | |
357 | 311 | | |
358 | | - | |
| 312 | + | |
| 313 | + | |
359 | 314 | | |
360 | 315 | | |
361 | | - | |
362 | | - | |
363 | | - | |
| 316 | + | |
| 317 | + | |
364 | 318 | | |
365 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
366 | 324 | | |
367 | 325 | | |
368 | | - | |
369 | | - | |
| 326 | + | |
370 | 327 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | 328 | | |
376 | 329 | | |
377 | 330 | | |
| |||
0 commit comments