diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-02-26 09:09:08 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-03-06 23:29:05 -0500 |
commit | f38487f22dee6eaca8d06cac99377693803cda8f (patch) | |
tree | 97c4910c13579c50c2f941981908a967eff00cee /drivers/mfd/ab8500-debugfs.c | |
parent | abee26cdb685fa47d3d17ec9cf39f6149ce67083 (diff) |
mfd: ab8500-debugfs: Change AB8500 debug permissions
Enable group write permissions for ab8500 debug MFD driver.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/ab8500-debugfs.c')
-rw-r--r-- | drivers/mfd/ab8500-debugfs.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index 44c9bc1f2544..4779e2f834b4 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c | |||
@@ -2623,22 +2623,22 @@ static int ab8500_debug_probe(struct platform_device *plf) | |||
2623 | if (!file) | 2623 | if (!file) |
2624 | goto err; | 2624 | goto err; |
2625 | 2625 | ||
2626 | file = debugfs_create_file("register-bank", (S_IRUGO | S_IWUSR), | 2626 | file = debugfs_create_file("register-bank", (S_IRUGO | S_IWUSR | S_IWGRP), |
2627 | ab8500_dir, &plf->dev, &ab8500_bank_fops); | 2627 | ab8500_dir, &plf->dev, &ab8500_bank_fops); |
2628 | if (!file) | 2628 | if (!file) |
2629 | goto err; | 2629 | goto err; |
2630 | 2630 | ||
2631 | file = debugfs_create_file("register-address", (S_IRUGO | S_IWUSR), | 2631 | file = debugfs_create_file("register-address", (S_IRUGO | S_IWUSR | S_IWGRP), |
2632 | ab8500_dir, &plf->dev, &ab8500_address_fops); | 2632 | ab8500_dir, &plf->dev, &ab8500_address_fops); |
2633 | if (!file) | 2633 | if (!file) |
2634 | goto err; | 2634 | goto err; |
2635 | 2635 | ||
2636 | file = debugfs_create_file("register-value", (S_IRUGO | S_IWUSR), | 2636 | file = debugfs_create_file("register-value", (S_IRUGO | S_IWUSR | S_IWGRP), |
2637 | ab8500_dir, &plf->dev, &ab8500_val_fops); | 2637 | ab8500_dir, &plf->dev, &ab8500_val_fops); |
2638 | if (!file) | 2638 | if (!file) |
2639 | goto err; | 2639 | goto err; |
2640 | 2640 | ||
2641 | file = debugfs_create_file("irq-subscribe", (S_IRUGO | S_IWUSR), | 2641 | file = debugfs_create_file("irq-subscribe", (S_IRUGO | S_IWUSR | S_IWGRP), |
2642 | ab8500_dir, &plf->dev, &ab8500_subscribe_fops); | 2642 | ab8500_dir, &plf->dev, &ab8500_subscribe_fops); |
2643 | if (!file) | 2643 | if (!file) |
2644 | goto err; | 2644 | goto err; |
@@ -2662,97 +2662,97 @@ static int ab8500_debug_probe(struct platform_device *plf) | |||
2662 | if (!file) | 2662 | if (!file) |
2663 | goto err; | 2663 | goto err; |
2664 | 2664 | ||
2665 | file = debugfs_create_file("irq-unsubscribe", (S_IRUGO | S_IWUSR), | 2665 | file = debugfs_create_file("irq-unsubscribe", (S_IRUGO | S_IWUSR | S_IWGRP), |
2666 | ab8500_dir, &plf->dev, &ab8500_unsubscribe_fops); | 2666 | ab8500_dir, &plf->dev, &ab8500_unsubscribe_fops); |
2667 | if (!file) | 2667 | if (!file) |
2668 | goto err; | 2668 | goto err; |
2669 | 2669 | ||
2670 | file = debugfs_create_file("hwreg", (S_IRUGO | S_IWUSR), | 2670 | file = debugfs_create_file("hwreg", (S_IRUGO | S_IWUSR | S_IWGRP), |
2671 | ab8500_dir, &plf->dev, &ab8500_hwreg_fops); | 2671 | ab8500_dir, &plf->dev, &ab8500_hwreg_fops); |
2672 | if (!file) | 2672 | if (!file) |
2673 | goto err; | 2673 | goto err; |
2674 | 2674 | ||
2675 | file = debugfs_create_file("all-modem-registers", (S_IRUGO | S_IWUGO), | 2675 | file = debugfs_create_file("all-modem-registers", (S_IRUGO | S_IWUSR | S_IWGRP), |
2676 | ab8500_dir, &plf->dev, &ab8500_modem_fops); | 2676 | ab8500_dir, &plf->dev, &ab8500_modem_fops); |
2677 | if (!file) | 2677 | if (!file) |
2678 | goto err; | 2678 | goto err; |
2679 | 2679 | ||
2680 | file = debugfs_create_file("bat_ctrl", (S_IRUGO | S_IWUSR), | 2680 | file = debugfs_create_file("bat_ctrl", (S_IRUGO | S_IWUSR | S_IWGRP), |
2681 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_bat_ctrl_fops); | 2681 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_bat_ctrl_fops); |
2682 | if (!file) | 2682 | if (!file) |
2683 | goto err; | 2683 | goto err; |
2684 | 2684 | ||
2685 | file = debugfs_create_file("btemp_ball", (S_IRUGO | S_IWUSR), | 2685 | file = debugfs_create_file("btemp_ball", (S_IRUGO | S_IWUSR | S_IWGRP), |
2686 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_btemp_ball_fops); | 2686 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_btemp_ball_fops); |
2687 | if (!file) | 2687 | if (!file) |
2688 | goto err; | 2688 | goto err; |
2689 | 2689 | ||
2690 | file = debugfs_create_file("main_charger_v", (S_IRUGO | S_IWUSR), | 2690 | file = debugfs_create_file("main_charger_v", (S_IRUGO | S_IWUSR | S_IWGRP), |
2691 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_main_charger_v_fops); | 2691 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_main_charger_v_fops); |
2692 | if (!file) | 2692 | if (!file) |
2693 | goto err; | 2693 | goto err; |
2694 | 2694 | ||
2695 | file = debugfs_create_file("acc_detect1", (S_IRUGO | S_IWUSR), | 2695 | file = debugfs_create_file("acc_detect1", (S_IRUGO | S_IWUSR | S_IWGRP), |
2696 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_acc_detect1_fops); | 2696 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_acc_detect1_fops); |
2697 | if (!file) | 2697 | if (!file) |
2698 | goto err; | 2698 | goto err; |
2699 | 2699 | ||
2700 | file = debugfs_create_file("acc_detect2", (S_IRUGO | S_IWUSR), | 2700 | file = debugfs_create_file("acc_detect2", (S_IRUGO | S_IWUSR | S_IWGRP), |
2701 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_acc_detect2_fops); | 2701 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_acc_detect2_fops); |
2702 | if (!file) | 2702 | if (!file) |
2703 | goto err; | 2703 | goto err; |
2704 | 2704 | ||
2705 | file = debugfs_create_file("adc_aux1", (S_IRUGO | S_IWUSR), | 2705 | file = debugfs_create_file("adc_aux1", (S_IRUGO | S_IWUSR | S_IWGRP), |
2706 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_aux1_fops); | 2706 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_aux1_fops); |
2707 | if (!file) | 2707 | if (!file) |
2708 | goto err; | 2708 | goto err; |
2709 | 2709 | ||
2710 | file = debugfs_create_file("adc_aux2", (S_IRUGO | S_IWUSR), | 2710 | file = debugfs_create_file("adc_aux2", (S_IRUGO | S_IWUSR | S_IWGRP), |
2711 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_aux2_fops); | 2711 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_aux2_fops); |
2712 | if (!file) | 2712 | if (!file) |
2713 | goto err; | 2713 | goto err; |
2714 | 2714 | ||
2715 | file = debugfs_create_file("main_bat_v", (S_IRUGO | S_IWUSR), | 2715 | file = debugfs_create_file("main_bat_v", (S_IRUGO | S_IWUSR | S_IWGRP), |
2716 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_main_bat_v_fops); | 2716 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_main_bat_v_fops); |
2717 | if (!file) | 2717 | if (!file) |
2718 | goto err; | 2718 | goto err; |
2719 | 2719 | ||
2720 | file = debugfs_create_file("vbus_v", (S_IRUGO | S_IWUSR), | 2720 | file = debugfs_create_file("vbus_v", (S_IRUGO | S_IWUSR | S_IWGRP), |
2721 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_vbus_v_fops); | 2721 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_vbus_v_fops); |
2722 | if (!file) | 2722 | if (!file) |
2723 | goto err; | 2723 | goto err; |
2724 | 2724 | ||
2725 | file = debugfs_create_file("main_charger_c", (S_IRUGO | S_IWUSR), | 2725 | file = debugfs_create_file("main_charger_c", (S_IRUGO | S_IWUSR | S_IWGRP), |
2726 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_main_charger_c_fops); | 2726 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_main_charger_c_fops); |
2727 | if (!file) | 2727 | if (!file) |
2728 | goto err; | 2728 | goto err; |
2729 | 2729 | ||
2730 | file = debugfs_create_file("usb_charger_c", (S_IRUGO | S_IWUSR), | 2730 | file = debugfs_create_file("usb_charger_c", (S_IRUGO | S_IWUSR | S_IWGRP), |
2731 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_usb_charger_c_fops); | 2731 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_usb_charger_c_fops); |
2732 | if (!file) | 2732 | if (!file) |
2733 | goto err; | 2733 | goto err; |
2734 | 2734 | ||
2735 | file = debugfs_create_file("bk_bat_v", (S_IRUGO | S_IWUSR), | 2735 | file = debugfs_create_file("bk_bat_v", (S_IRUGO | S_IWUSR | S_IWGRP), |
2736 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_bk_bat_v_fops); | 2736 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_bk_bat_v_fops); |
2737 | if (!file) | 2737 | if (!file) |
2738 | goto err; | 2738 | goto err; |
2739 | 2739 | ||
2740 | file = debugfs_create_file("die_temp", (S_IRUGO | S_IWUSR), | 2740 | file = debugfs_create_file("die_temp", (S_IRUGO | S_IWUSR | S_IWGRP), |
2741 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_die_temp_fops); | 2741 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_die_temp_fops); |
2742 | if (!file) | 2742 | if (!file) |
2743 | goto err; | 2743 | goto err; |
2744 | 2744 | ||
2745 | file = debugfs_create_file("usb_id", (S_IRUGO | S_IWUGO), | 2745 | file = debugfs_create_file("usb_id", (S_IRUGO | S_IWUSR | S_IWGRP), |
2746 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_usb_id_fops); | 2746 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_usb_id_fops); |
2747 | if (!file) | 2747 | if (!file) |
2748 | goto err; | 2748 | goto err; |
2749 | 2749 | ||
2750 | if (is_ab8540(ab8500)) { | 2750 | if (is_ab8540(ab8500)) { |
2751 | file = debugfs_create_file("xtal_temp", (S_IRUGO | S_IWUGO), | 2751 | file = debugfs_create_file("xtal_temp", (S_IRUGO | S_IWUSR | S_IWGRP), |
2752 | ab8500_gpadc_dir, &plf->dev, &ab8540_gpadc_xtal_temp_fops); | 2752 | ab8500_gpadc_dir, &plf->dev, &ab8540_gpadc_xtal_temp_fops); |
2753 | if (!file) | 2753 | if (!file) |
2754 | goto err; | 2754 | goto err; |
2755 | file = debugfs_create_file("vbattruemeas", (S_IRUGO | S_IWUGO), | 2755 | file = debugfs_create_file("vbattruemeas", (S_IRUGO | S_IWUSR | S_IWGRP), |
2756 | ab8500_gpadc_dir, &plf->dev, | 2756 | ab8500_gpadc_dir, &plf->dev, |
2757 | &ab8540_gpadc_vbat_true_meas_fops); | 2757 | &ab8540_gpadc_vbat_true_meas_fops); |
2758 | if (!file) | 2758 | if (!file) |
@@ -2779,27 +2779,27 @@ static int ab8500_debug_probe(struct platform_device *plf) | |||
2779 | &plf->dev, &ab8540_gpadc_bat_temp_and_ibat_fops); | 2779 | &plf->dev, &ab8540_gpadc_bat_temp_and_ibat_fops); |
2780 | if (!file) | 2780 | if (!file) |
2781 | goto err; | 2781 | goto err; |
2782 | file = debugfs_create_file("otp_calib", (S_IRUGO | S_IWUGO), | 2782 | file = debugfs_create_file("otp_calib", (S_IRUGO | S_IWUSR | S_IWGRP), |
2783 | ab8500_gpadc_dir, &plf->dev, &ab8540_gpadc_otp_calib_fops); | 2783 | ab8500_gpadc_dir, &plf->dev, &ab8540_gpadc_otp_calib_fops); |
2784 | if (!file) | 2784 | if (!file) |
2785 | goto err; | 2785 | goto err; |
2786 | } | 2786 | } |
2787 | file = debugfs_create_file("avg_sample", (S_IRUGO | S_IWUGO), | 2787 | file = debugfs_create_file("avg_sample", (S_IRUGO | S_IWUSR | S_IWGRP), |
2788 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_avg_sample_fops); | 2788 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_avg_sample_fops); |
2789 | if (!file) | 2789 | if (!file) |
2790 | goto err; | 2790 | goto err; |
2791 | 2791 | ||
2792 | file = debugfs_create_file("trig_edge", (S_IRUGO | S_IWUGO), | 2792 | file = debugfs_create_file("trig_edge", (S_IRUGO | S_IWUSR | S_IWGRP), |
2793 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_trig_edge_fops); | 2793 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_trig_edge_fops); |
2794 | if (!file) | 2794 | if (!file) |
2795 | goto err; | 2795 | goto err; |
2796 | 2796 | ||
2797 | file = debugfs_create_file("trig_timer", (S_IRUGO | S_IWUGO), | 2797 | file = debugfs_create_file("trig_timer", (S_IRUGO | S_IWUSR | S_IWGRP), |
2798 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_trig_timer_fops); | 2798 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_trig_timer_fops); |
2799 | if (!file) | 2799 | if (!file) |
2800 | goto err; | 2800 | goto err; |
2801 | 2801 | ||
2802 | file = debugfs_create_file("conv_type", (S_IRUGO | S_IWUGO), | 2802 | file = debugfs_create_file("conv_type", (S_IRUGO | S_IWUSR | S_IWGRP), |
2803 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_conv_type_fops); | 2803 | ab8500_gpadc_dir, &plf->dev, &ab8500_gpadc_conv_type_fops); |
2804 | if (!file) | 2804 | if (!file) |
2805 | goto err; | 2805 | goto err; |