D | ab8500-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2010 22 #include <linux/mfd/dbx500-prcmu.h> 146 0, 1, 2, 3, 4, -1, -1, -1, -1, 11, 18, 19, 20, 21, 12, 13, 24, 5, 22, 157 static int ab8500_prcmu_write(struct ab8500 *ab8500, u16 addr, u8 data) in ab8500_prcmu_write() argument 161 ret = prcmu_abb_write((u8)(addr >> 8), (u8)(addr & 0xFF), &data, 1); in ab8500_prcmu_write() 163 dev_err(ab8500->dev, "prcmu i2c error %d\n", ret); in ab8500_prcmu_write() 168 u8 data) in ab8500_prcmu_write_masked() argument 172 ret = prcmu_abb_write_masked((u8)(addr >> 8), (u8)(addr & 0xFF), &data, in ab8500_prcmu_write_masked() 175 dev_err(ab8500->dev, "prcmu i2c error %d\n", ret); in ab8500_prcmu_write_masked() [all …]
|