88pm8607.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | 88pm8607.c (d3d7bccc07a06a33fb9ba97ab764df8d46fb87d0) |
---|---|
1/* 2 * Regulators driver for Marvell 88PM8607 3 * 4 * Copyright (C) 2009 Marvell International Ltd. 5 * Haojian Zhuang <haojian.zhuang@marvell.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 314 unchanged lines hidden (view full) --- 323 ret = pm860x_reg_read(info->i2c, info->enable_reg); 324 if (ret < 0) 325 return ret; 326 327 return !!((unsigned char)ret & (1 << info->enable_bit)); 328} 329 330static struct regulator_ops pm8607_regulator_ops = { | 1/* 2 * Regulators driver for Marvell 88PM8607 3 * 4 * Copyright (C) 2009 Marvell International Ltd. 5 * Haojian Zhuang <haojian.zhuang@marvell.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 314 unchanged lines hidden (view full) --- 323 ret = pm860x_reg_read(info->i2c, info->enable_reg); 324 if (ret < 0) 325 return ret; 326 327 return !!((unsigned char)ret & (1 << info->enable_bit)); 328} 329 330static struct regulator_ops pm8607_regulator_ops = { |
331 .list_voltage = pm8607_list_voltage, |
|
331 .set_voltage = pm8607_set_voltage, 332 .get_voltage = pm8607_get_voltage, 333 .enable = pm8607_enable, 334 .disable = pm8607_disable, 335 .is_enabled = pm8607_is_enabled, 336}; 337 338#define PM8607_DVC(vreg, nbits, ureg, ubit, ereg, ebit) \ --- 136 unchanged lines hidden --- | 332 .set_voltage = pm8607_set_voltage, 333 .get_voltage = pm8607_get_voltage, 334 .enable = pm8607_enable, 335 .disable = pm8607_disable, 336 .is_enabled = pm8607_is_enabled, 337}; 338 339#define PM8607_DVC(vreg, nbits, ureg, ubit, ereg, ebit) \ --- 136 unchanged lines hidden --- |