From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Fri, 12 Aug 2011 10:06:09 +0100 Subject: [PATCH 2/2] ARM: perf: make name of arm_pmu_type consistent In-Reply-To: <1312981138-17020-2-git-send-email-mark.rutland@arm.com> References: <1312981138-17020-1-git-send-email-mark.rutland@arm.com> <1312981138-17020-2-git-send-email-mark.rutland@arm.com> Message-ID: <20110812090609.GJ4775@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Aug 10, 2011 at 01:58:58PM +0100, Mark Rutland wrote: > Commit f12482c9 ("ARM: 6974/1: pmu: refactor reservation") changed > {release,reserve}_pmu to take an enum arm_pmu_type as a parameter, but > inconsistently named the parameter `type' or `device'. It would be nice > if these were consistent. > > This patch makes use of enum arm_pmu_type consistent, always using > 'device' as this is more common in usage. This is confusing. It's called arm_pmu_TYPE, and it's referred to as a type in printks. Yet you're renaming the variable to device. That just adds to the problem. What is it, a type number or a device number? If it's a device number, then the printks also need fixing, and maybe the enumerated type name too.