Re: [Intel-gfx] [PATCH -next] drm/i915: use DEVICE_ATTR_RO macro

2021-06-02 Thread Tvrtko Ursulin
On 01/06/2021 10:15, Tvrtko Ursulin wrote: On 28/05/2021 11:04, YueHaibing wrote: Use DEVICE_ATTR_RO() helper instead of plain DEVICE_ATTR(), which makes the code a bit shorter and easier to read. Signed-off-by: YueHaibing ---   drivers/gpu/drm/i915/i915_pmu.c   |  8 +++-   drivers/gpu/d

Re: [Intel-gfx] [PATCH -next] drm/i915: use DEVICE_ATTR_RO macro

2021-06-01 Thread Tvrtko Ursulin
On 28/05/2021 11:04, YueHaibing wrote: Use DEVICE_ATTR_RO() helper instead of plain DEVICE_ATTR(), which makes the code a bit shorter and easier to read. Signed-off-by: YueHaibing --- drivers/gpu/drm/i915/i915_pmu.c | 8 +++- drivers/gpu/drm/i915/i915_sysfs.c | 30 +++---

[Intel-gfx] [PATCH -next] drm/i915: use DEVICE_ATTR_RO macro

2021-05-28 Thread YueHaibing
Use DEVICE_ATTR_RO() helper instead of plain DEVICE_ATTR(), which makes the code a bit shorter and easier to read. Signed-off-by: YueHaibing --- drivers/gpu/drm/i915/i915_pmu.c | 8 +++- drivers/gpu/drm/i915/i915_sysfs.c | 30 +++--- 2 files changed, 18 insertions(