From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754080Ab2DRBEu (ORCPT ); Tue, 17 Apr 2012 21:04:50 -0400 Received: from hqemgate03.nvidia.com ([216.228.121.140]:13451 "EHLO hqemgate03.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752287Ab2DRBEO (ORCPT ); Tue, 17 Apr 2012 21:04:14 -0400 X-PGP-Universal: processed; by hqnvupgp05.nvidia.com on Tue, 17 Apr 2012 18:04:09 -0700 From: Rhyland Klein To: Liam Girdwood , Mark Brown , Grant Likely , Rob Herring , Samuel Ortiz CC: , , , Rhyland Klein Subject: [PATCH 1/4] regulator: tps65910: update type for regmap Date: Tue, 17 Apr 2012 18:00:26 -0700 Message-ID: <1334710829-22777-2-git-send-email-rklein@nvidia.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1334710829-22777-1-git-send-email-rklein@nvidia.com> References: <1334710829-22777-1-git-send-email-rklein@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When accessing the regmap via the read/write functions, we need to use a unsigned int * instead of a u8 * otherwise corruption will occur. Signed-off-by: Rhyland Klein --- drivers/regulator/tps65910-regulator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c index 747bf57..9fd0fe1 100644 --- a/drivers/regulator/tps65910-regulator.c +++ b/drivers/regulator/tps65910-regulator.c @@ -331,7 +331,7 @@ struct tps65910_reg { static inline int tps65910_read(struct tps65910_reg *pmic, u8 reg) { - u8 val; + unsigned int val; int err; err = pmic->mfd->read(pmic->mfd, reg, 1, &val); -- 1.7.0.4