From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932359Ab2IRHbb (ORCPT ); Tue, 18 Sep 2012 03:31:31 -0400 Received: from mail-ie0-f174.google.com ([209.85.223.174]:52372 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932098Ab2IRHb3 (ORCPT ); Tue, 18 Sep 2012 03:31:29 -0400 MIME-Version: 1.0 In-Reply-To: <20120918131904.ded0551cb03d079dc08cecbb@canb.auug.org.au> References: <20120918131904.ded0551cb03d079dc08cecbb@canb.auug.org.au> Date: Tue, 18 Sep 2012 15:31:29 +0800 Message-ID: Subject: Re: linux-next: manual merge of the mfd tree with Linus' tree From: Dong Aisheng To: Stephen Rothwell Cc: Samuel Ortiz , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Axel Lin , Mark Brown Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, On 18 September 2012 11:19, Stephen Rothwell wrote: > Hi Samuel, > > Today's linux-next merge of the mfd tree got a conflict in > drivers/regulator/anatop-regulator.c between commit 3e2a928472da > ("regulator: anatop: Fix wrong mask used in anatop_get_voltage_sel") from > Linus' tree and commit baa64151aecc ("regulator: anatop-regulator: > Convert to use syscon to access anatop register") from the mfd tree. > > I fixed it up (see below) and can carry the fix as necessary (no action > is required). > > -- > Cheers, > Stephen Rothwell sfr@canb.auug.org.au > > diff --cc drivers/regulator/anatop-regulator.c > index ce0fe72,596535d..0000000 > --- a/drivers/regulator/anatop-regulator.c > +++ b/drivers/regulator/anatop-regulator.c > @@@ -61,18 -64,17 +64,18 @@@ static int anatop_regmap_set_voltage_se > return 0; > } > > - static int anatop_get_voltage_sel(struct regulator_dev *reg) > + static int anatop_regmap_get_voltage_sel(struct regulator_dev *reg) > { > struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg); > - u32 val; > + u32 val, mask; > > if (!anatop_reg->control_reg) > return -ENOTSUPP; > > - val = anatop_read_reg(anatop_reg->mfd, anatop_reg->control_reg); > + regmap_read(anatop_reg->anatop, anatop_reg->control_reg, &val); > - val = (val & ((1 << anatop_reg->vol_bit_width) - 1)) >> > + mask = ((1 << anatop_reg->vol_bit_width) - 1) << > anatop_reg->vol_bit_shift; > + val = (val & mask) >> anatop_reg->vol_bit_shift; > > return val - anatop_reg->min_bit_val; > } The fix looks ok to me. Regards Dong Aisheng