Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc/tegra: pmc: Remove some old and deprecated functions and constants

These TEGRA_IO_RAIL_... functions and constants have been deprecated in
commit 21b499105178 ("soc/tegra: pmc: Add I/O pad voltage support") in
2016-11.

There seems to be no users since kernel 4.16.

Remove them now.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Christophe JAILLET and committed by
Thierry Reding
9863084d 6613476e

-42
-24
drivers/soc/tegra/pmc.c
··· 1777 1777 return TEGRA_IO_PAD_VOLTAGE_3V3; 1778 1778 } 1779 1779 1780 - /** 1781 - * tegra_io_rail_power_on() - enable power to I/O rail 1782 - * @id: Tegra I/O pad ID for which to enable power 1783 - * 1784 - * See also: tegra_io_pad_power_enable() 1785 - */ 1786 - int tegra_io_rail_power_on(unsigned int id) 1787 - { 1788 - return tegra_io_pad_power_enable(id); 1789 - } 1790 - EXPORT_SYMBOL(tegra_io_rail_power_on); 1791 - 1792 - /** 1793 - * tegra_io_rail_power_off() - disable power to I/O rail 1794 - * @id: Tegra I/O pad ID for which to disable power 1795 - * 1796 - * See also: tegra_io_pad_power_disable() 1797 - */ 1798 - int tegra_io_rail_power_off(unsigned int id) 1799 - { 1800 - return tegra_io_pad_power_disable(id); 1801 - } 1802 - EXPORT_SYMBOL(tegra_io_rail_power_off); 1803 - 1804 1780 #ifdef CONFIG_PM_SLEEP 1805 1781 enum tegra_suspend_mode tegra_pmc_get_suspend_mode(void) 1806 1782 {
-18
include/soc/tegra/pmc.h
··· 148 148 TEGRA_IO_PAD_AO_HV, 149 149 }; 150 150 151 - /* deprecated, use TEGRA_IO_PAD_{HDMI,LVDS} instead */ 152 - #define TEGRA_IO_RAIL_HDMI TEGRA_IO_PAD_HDMI 153 - #define TEGRA_IO_RAIL_LVDS TEGRA_IO_PAD_LVDS 154 - 155 151 #ifdef CONFIG_SOC_TEGRA_PMC 156 152 int tegra_powergate_power_on(unsigned int id); 157 153 int tegra_powergate_power_off(unsigned int id); ··· 159 163 160 164 int tegra_io_pad_power_enable(enum tegra_io_pad id); 161 165 int tegra_io_pad_power_disable(enum tegra_io_pad id); 162 - 163 - /* deprecated, use tegra_io_pad_power_{enable,disable}() instead */ 164 - int tegra_io_rail_power_on(unsigned int id); 165 - int tegra_io_rail_power_off(unsigned int id); 166 166 167 167 void tegra_pmc_set_suspend_mode(enum tegra_suspend_mode mode); 168 168 void tegra_pmc_enter_suspend_mode(enum tegra_suspend_mode mode); ··· 199 207 } 200 208 201 209 static inline int tegra_io_pad_get_voltage(enum tegra_io_pad id) 202 - { 203 - return -ENOSYS; 204 - } 205 - 206 - static inline int tegra_io_rail_power_on(unsigned int id) 207 - { 208 - return -ENOSYS; 209 - } 210 - 211 - static inline int tegra_io_rail_power_off(unsigned int id) 212 210 { 213 211 return -ENOSYS; 214 212 }