Commit 6cb31c9
committed
i2c: i801: Add helper i801_get_block_len
JIRA: https://issues.redhat.com/browse/RHEL-47426
commit 857cc04
Author: Heiner Kallweit <hkallweit1@gmail.com>
Date: Fri Feb 2 08:06:30 2024 +0100
i2c: i801: Add helper i801_get_block_len
Avoid code duplication and factor out retrieving and checking the
block length value to new helper i801_get_block_len().
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: David Arcari <darcari@redhat.com>1 parent f27cfb0 commit 6cb31c9
1 file changed
+20
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
335 | 347 | | |
336 | 348 | | |
337 | 349 | | |
| |||
526 | 538 | | |
527 | 539 | | |
528 | 540 | | |
529 | | - | |
530 | | - | |
531 | | - | |
| 541 | + | |
| 542 | + | |
532 | 543 | | |
533 | | - | |
534 | 544 | | |
| 545 | + | |
535 | 546 | | |
536 | 547 | | |
537 | 548 | | |
| |||
551 | 562 | | |
552 | 563 | | |
553 | 564 | | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
| 565 | + | |
| 566 | + | |
559 | 567 | | |
560 | 568 | | |
561 | | - | |
| 569 | + | |
562 | 570 | | |
563 | 571 | | |
564 | 572 | | |
| |||
715 | 723 | | |
716 | 724 | | |
717 | 725 | | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
| 726 | + | |
| 727 | + | |
723 | 728 | | |
724 | 729 | | |
725 | 730 | | |
| |||
0 commit comments