aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ab8500-debugfs.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-09-07 23:14:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-07 23:14:19 -0400
commit8de4651abe61c6b6a94a70a57ef163020fed05ee (patch)
treea2455b59b7df7239a5819b9cf2248e27eef483c4 /drivers/mfd/ab8500-debugfs.c
parent327fff3e1391a27dcc89de6e0481689a865361c9 (diff)
parent9c31e8840836de447e1e508a6d756af419790ed6 (diff)
Merge tag 'mfd-3.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-next
Pull MFD (multi-function device) updates from Samuel Ortiz: "For the 3.12 merge window we have one new driver for the DA9063 PMIC from Dialog Semiconductor. Besides that driver we also have: - Device tree support for the s2mps11 driver - More devm_* conversion for the pm8921, max89xx, menelaus, tps65010, wl1273 and pcf50633-adc drivers. - A conversion to threaded IRQ and IRQ domain for the twl6030 driver. - A fairly big update for the rtsx driver: Better power saving support, better vendor settings handling, and a few fixes. - Support for a couple more boards (COMe-bHL6 and COMe-cTH6) for the Kontron driver. - A conversion to the dev_get_platdata() API for all MFD drivers. - A removal of non-DT (legacy) support for the twl6040 driver. - A few fixes and additions (Mic detect level) to the wm5110 register tables. - Regmap support for the davinci_voicecodec driver. - The usual bunch of minor cleanups and janitorial fixes" * tag 'mfd-3.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-next: (81 commits) mfd: ucb1x00-core: Rewrite ucb1x00_add_dev() mfd: ab8500-debugfs: Apply a check for -ENOMEM after allocating memory for event name mfd: ab8500-debugfs: Apply a check for -ENOMEM after allocating memory for sysfs mfd: timberdale: Use module_pci_driver mfd: timberdale: Remove redundant break mfd: timberdale: Staticize local variables mfd: ab8500-debugfs: Staticize local variables mfd: db8500-prcmu: Staticize clk_mgt mfd: db8500-prcmu: Use ANSI function declaration mfd: omap-usb-host: Staticize usbhs_driver_name mfd: 88pm805: Fix potential NULL pdata dereference mfd: 88pm800: Fix potential NULL pdata dereference mfd: twl6040: Use regmap for register cache mfd: davinci_voicecodec: Provide a regmap for register I/O mfd: davinci_voicecodec: Remove unused read and write functions mmc: memstick: rtsx: Modify copyright comments mmc: rtsx: Clear SD_CLK toggle enable bit if switching voltage fail mfd: mmc: rtsx: Change default tx phase mfd: pcf50633-adc: Use devm_*() functions mfd: rtsx: Copyright modifications ...
Diffstat (limited to 'drivers/mfd/ab8500-debugfs.c')
-rw-r--r--drivers/mfd/ab8500-debugfs.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c
index 7d1f1b08fc4b..e33e385af0a2 100644
--- a/drivers/mfd/ab8500-debugfs.c
+++ b/drivers/mfd/ab8500-debugfs.c
@@ -159,7 +159,7 @@ static struct hwreg_cfg hwreg_cfg = {
159 159
160static struct ab8500_prcmu_ranges *debug_ranges; 160static struct ab8500_prcmu_ranges *debug_ranges;
161 161
162struct ab8500_prcmu_ranges ab8500_debug_ranges[AB8500_NUM_BANKS] = { 162static struct ab8500_prcmu_ranges ab8500_debug_ranges[AB8500_NUM_BANKS] = {
163 [0x0] = { 163 [0x0] = {
164 .num_ranges = 0, 164 .num_ranges = 0,
165 .range = NULL, 165 .range = NULL,
@@ -488,7 +488,7 @@ struct ab8500_prcmu_ranges ab8500_debug_ranges[AB8500_NUM_BANKS] = {
488 }, 488 },
489}; 489};
490 490
491struct ab8500_prcmu_ranges ab8505_debug_ranges[AB8500_NUM_BANKS] = { 491static struct ab8500_prcmu_ranges ab8505_debug_ranges[AB8500_NUM_BANKS] = {
492 [0x0] = { 492 [0x0] = {
493 .num_ranges = 0, 493 .num_ranges = 0,
494 .range = NULL, 494 .range = NULL,
@@ -847,7 +847,7 @@ struct ab8500_prcmu_ranges ab8505_debug_ranges[AB8500_NUM_BANKS] = {
847 }, 847 },
848}; 848};
849 849
850struct ab8500_prcmu_ranges ab8540_debug_ranges[AB8500_NUM_BANKS] = { 850static struct ab8500_prcmu_ranges ab8540_debug_ranges[AB8500_NUM_BANKS] = {
851 [AB8500_M_FSM_RANK] = { 851 [AB8500_M_FSM_RANK] = {
852 .num_ranges = 1, 852 .num_ranges = 1,
853 .range = (struct ab8500_reg_range[]) { 853 .range = (struct ab8500_reg_range[]) {
@@ -1377,7 +1377,7 @@ void ab8500_dump_all_banks(struct device *dev)
1377 1377
1378/* Space for 500 registers. */ 1378/* Space for 500 registers. */
1379#define DUMP_MAX_REGS 700 1379#define DUMP_MAX_REGS 700
1380struct ab8500_register_dump 1380static struct ab8500_register_dump
1381{ 1381{
1382 u8 bank; 1382 u8 bank;
1383 u8 reg; 1383 u8 reg;
@@ -2800,7 +2800,13 @@ static ssize_t ab8500_subscribe_write(struct file *file,
2800 */ 2800 */
2801 dev_attr[irq_index] = kmalloc(sizeof(struct device_attribute), 2801 dev_attr[irq_index] = kmalloc(sizeof(struct device_attribute),
2802 GFP_KERNEL); 2802 GFP_KERNEL);
2803 if (!dev_attr[irq_index])
2804 return -ENOMEM;
2805
2803 event_name[irq_index] = kmalloc(count, GFP_KERNEL); 2806 event_name[irq_index] = kmalloc(count, GFP_KERNEL);
2807 if (!event_name[irq_index])
2808 return -ENOMEM;
2809
2804 sprintf(event_name[irq_index], "%lu", user_val); 2810 sprintf(event_name[irq_index], "%lu", user_val);
2805 dev_attr[irq_index]->show = show_irq; 2811 dev_attr[irq_index]->show = show_irq;
2806 dev_attr[irq_index]->store = NULL; 2812 dev_attr[irq_index]->store = NULL;