drivers/perf: arm_pmu: define armpmu_init_fn
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:45 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commit083c52144a19c69b7956aa53c913ba621f7c5ae2
tree4ac19de3eb832f5758f2999f351430d3ebcee6a5
parenta9e469d1c89b5e9890859b5f001601498549577d
drivers/perf: arm_pmu: define armpmu_init_fn

We expect an ARM PMU's init function to have a particular prototype,
which we open-code in a few places. This is less than ideal, considering
that we cast a void value to this type in one location, and a mismatch
could easily be missed.

Add a typedef so that we can ensure this is consistent.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c
include/linux/perf/arm_pmu.h