summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-12-30 00:04:43 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2024-02-01 09:04:18 +0300
commitb03301870d9b5b2e24bb2037d23101556e76d242 (patch)
treebf1e4d1435f92a56e33aa5d9b28ccbbf62260d2a /tools/perf/scripts/python/event_analyzing_sample.py
parent781bf4cee3c160a5ce97d86719675083a2f2a67c (diff)
downloadlinux-b03301870d9b5b2e24bb2037d23101556e76d242.tar.xz
media: atomisp: Replace atomisp_drvfs attr with using driver.dev_groups attr
sysfs attributes preferably should not be manually be registered but instead the driver.groups / driver.dev_groups driver struct members should be used to have the driver core handle this in a race free manner. Using driver.groups would be the most direct replacement for driver_[add|remove]_file, but some of the attributes actually need access to the struct atomisp_device (*), so as part of modernizing this part of the atomisp driver this change also makes the sysfs attribute device attributes instead of driver attributes. *) Before this change accessing these attributes without the driver having bound would result in a NULL pointer deref, this commit fixes this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions