diff options
| author | Julia Lawall <[email protected]> | 2020-01-01 18:49:43 +0100 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <[email protected]> | 2020-01-15 17:31:49 +0100 |
| commit | 091be7245a0393c1e6785f4b82cc88cc1445285b (patch) | |
| tree | 235b46fcb879dd6cc5d94589bfa80a631973c310 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
| parent | 3c3c56397d5840d0e33eda1707625ecfc4d265a2 (diff) | |
fbdev: s1d13xxxfb: use resource_size
Use resource_size rather than a verbose computation on
the end and start fields.
The semantic patch that makes these changes is as follows:
(http://coccinelle.lip6.fr/)
<smpl>
@@ struct resource ptr; @@
- (ptr.end - ptr.start + 1)
+ resource_size(&ptr)
</smpl>
Signed-off-by: Julia Lawall <[email protected]>
Cc: Kristoffer Ericson <[email protected]>
[b.zolnierkie: ported patch to drm-misc-next]
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
0 files changed, 0 insertions, 0 deletions