aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files-5.15/drivers/gpio
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2022-12-22 11:27:59 +0100
committerSander Vanheule <sander@svanheule.net>2022-12-27 16:33:01 +0100
commit0a931767cf2a4c2592bb37c1109299a56fb0ee89 (patch)
treea07c91db89eb128d91199d7f661dab29d7909c69 /target/linux/realtek/files-5.15/drivers/gpio
parent758c88b969639d0e6b684669d2e54dd1be3102f4 (diff)
downloadupstream-0a931767cf2a4c2592bb37c1109299a56fb0ee89.tar.gz
upstream-0a931767cf2a4c2592bb37c1109299a56fb0ee89.tar.bz2
upstream-0a931767cf2a4c2592bb37c1109299a56fb0ee89.zip
realtek: Replace C++ style comments
The only exception to C++ style comments are SPDX license identifier markers at the start of C files (even headers have C style markers). Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Diffstat (limited to 'target/linux/realtek/files-5.15/drivers/gpio')
-rw-r--r--target/linux/realtek/files-5.15/drivers/gpio/gpio-rtl8231.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/realtek/files-5.15/drivers/gpio/gpio-rtl8231.c b/target/linux/realtek/files-5.15/drivers/gpio/gpio-rtl8231.c
index 0b0d039059..2821591a97 100644
--- a/target/linux/realtek/files-5.15/drivers/gpio/gpio-rtl8231.c
+++ b/target/linux/realtek/files-5.15/drivers/gpio/gpio-rtl8231.c
@@ -45,7 +45,7 @@ static u32 rtl8231_read(struct rtl8231_gpios *gpios, u32 reg)
/* Set execution bit: cleared when operation completed */
t |= 1;
- // Start execution
+ /* Start execution */
sw_w32(t, gpios->ext_gpio_indrt_access);
do {
udelay(1);
@@ -76,7 +76,7 @@ static int rtl8231_write(struct rtl8231_gpios *gpios, u32 reg, u32 data)
/* Set execution bit: cleared when operation completed */
t |= 1;
- // Start execution
+ /* Start execution */
sw_w32(t, gpios->ext_gpio_indrt_access);
do {
udelay(1);
@@ -259,10 +259,10 @@ int rtl8231_init(struct rtl8231_gpios *gpios)
gpios->reg_cached = 0;
if (soc_info.family == RTL8390_FAMILY_ID) {
- // RTL8390: Enable external gpio in global led control register
+ /* RTL8390: Enable external gpio in global led control register */
sw_w32_mask(0x7 << 18, 0x4 << 18, RTL839X_LED_GLB_CTRL);
} else if (soc_info.family == RTL8380_FAMILY_ID) {
- // RTL8380: Enable RTL8231 indirect access mode
+ /* RTL8380: Enable RTL8231 indirect access mode */
sw_w32_mask(0, 1, RTL838X_EXTRA_GPIO_CTRL);
sw_w32_mask(3, 1, RTL838X_DMY_REG5);
}