pinctrl-s32cc.c (fd84aaa8173d3ff86f8df2009921336a1ea53a8a) | pinctrl-s32cc.c (f7fc5768e57cc18c24783c524f4e80e680dc4fc4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Core driver for the S32 CC (Common Chassis) pin controller 4 * 5 * Copyright 2017-2022 NXP 6 * Copyright (C) 2022 SUSE LLC 7 * Copyright 2015-2016 Freescale Semiconductor, Inc. 8 */ --- 644 unchanged lines hidden (view full) --- 653 * by userspace). 654 */ 655 if (pd->mux_owner || pd->gpio_owner) 656 return true; 657 658 return false; 659} 660 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Core driver for the S32 CC (Common Chassis) pin controller 4 * 5 * Copyright 2017-2022 NXP 6 * Copyright (C) 2022 SUSE LLC 7 * Copyright 2015-2016 Freescale Semiconductor, Inc. 8 */ --- 644 unchanged lines hidden (view full) --- 653 * by userspace). 654 */ 655 if (pd->mux_owner || pd->gpio_owner) 656 return true; 657 658 return false; 659} 660 |
661int __maybe_unused s32_pinctrl_suspend(struct device *dev) | 661int s32_pinctrl_suspend(struct device *dev) |
662{ 663 struct platform_device *pdev = to_platform_device(dev); 664 struct s32_pinctrl *ipctl = platform_get_drvdata(pdev); 665 const struct pinctrl_pin_desc *pin; 666 const struct s32_pinctrl_soc_info *info = ipctl->info; 667 struct s32_pinctrl_context *saved_context = &ipctl->saved_context; 668 int i; 669 int ret; --- 10 unchanged lines hidden (view full) --- 680 return -EINVAL; 681 682 saved_context->pads[i] = config; 683 } 684 685 return 0; 686} 687 | 662{ 663 struct platform_device *pdev = to_platform_device(dev); 664 struct s32_pinctrl *ipctl = platform_get_drvdata(pdev); 665 const struct pinctrl_pin_desc *pin; 666 const struct s32_pinctrl_soc_info *info = ipctl->info; 667 struct s32_pinctrl_context *saved_context = &ipctl->saved_context; 668 int i; 669 int ret; --- 10 unchanged lines hidden (view full) --- 680 return -EINVAL; 681 682 saved_context->pads[i] = config; 683 } 684 685 return 0; 686} 687 |
688int __maybe_unused s32_pinctrl_resume(struct device *dev) | 688int s32_pinctrl_resume(struct device *dev) |
689{ 690 struct platform_device *pdev = to_platform_device(dev); 691 struct s32_pinctrl *ipctl = platform_get_drvdata(pdev); 692 const struct s32_pinctrl_soc_info *info = ipctl->info; 693 const struct pinctrl_pin_desc *pin; 694 struct s32_pinctrl_context *saved_context = &ipctl->saved_context; 695 int ret, i; 696 --- 249 unchanged lines hidden --- | 689{ 690 struct platform_device *pdev = to_platform_device(dev); 691 struct s32_pinctrl *ipctl = platform_get_drvdata(pdev); 692 const struct s32_pinctrl_soc_info *info = ipctl->info; 693 const struct pinctrl_pin_desc *pin; 694 struct s32_pinctrl_context *saved_context = &ipctl->saved_context; 695 int ret, i; 696 --- 249 unchanged lines hidden --- |