From 7679bba75eeb8fab9f9ab69bacc5babb821001f3 Mon Sep 17 00:00:00 2001 From: hanzj Date: Thu, 28 May 2026 15:57:27 +0800 Subject: [PATCH] =?UTF-8?q?drivers:=20Fix=20comment=20typos=20=E2=80=94=20?= =?UTF-8?q?'register'=20=E2=86=92=20'registered'=20across=20drivers.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix grammatical error in Returned Value documentation comments: 'successfully register' → 'successfully registered' 'successfully initialize' → 'successfully initialized' Affected files (17 files, 19 occurrences): drivers/i2c/i2c_driver.c drivers/i2s/i2schar.c drivers/i3c/i3c_driver.c drivers/i3c/master.c drivers/motor/motor.c drivers/motor/stepper.c drivers/rc/lirc_dev.c drivers/sensors/gnss_uorb.c drivers/sensors/sensor.c (2 occurrences) drivers/spi/spi_driver.c drivers/timers/ptp_clock.c drivers/timers/ptp_clock_dummy.c drivers/video/mipidsi/mipi_dsi.h (2 occurrences) drivers/video/mipidsi/mipi_dsi_device.c drivers/video/mipidsi/mipi_dsi_device_driver.c drivers/video/mipidsi/mipi_dsi_host.c drivers/video/mipidsi/mipi_dsi_host_driver.c These are all comment-only changes with no functional impact. Signed-off-by: hanzj --- drivers/i2c/i2c_driver.c | 2 +- drivers/i2s/i2schar.c | 2 +- drivers/i3c/i3c_driver.c | 2 +- drivers/i3c/master.c | 2 +- drivers/motor/motor.c | 2 +- drivers/motor/stepper.c | 2 +- drivers/rc/lirc_dev.c | 2 +- drivers/sensors/gnss_uorb.c | 2 +- drivers/sensors/sensor.c | 4 ++-- drivers/spi/spi_driver.c | 2 +- drivers/timers/ptp_clock.c | 2 +- drivers/timers/ptp_clock_dummy.c | 2 +- drivers/video/mipidsi/mipi_dsi.h | 4 ++-- drivers/video/mipidsi/mipi_dsi_device.c | 4 ++-- drivers/video/mipidsi/mipi_dsi_device_driver.c | 2 +- drivers/video/mipidsi/mipi_dsi_host.c | 2 +- drivers/video/mipidsi/mipi_dsi_host_driver.c | 2 +- 17 files changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/i2c/i2c_driver.c b/drivers/i2c/i2c_driver.c index b60988c01a2..e68e9859596 100644 --- a/drivers/i2c/i2c_driver.c +++ b/drivers/i2c/i2c_driver.c @@ -386,7 +386,7 @@ static int i2cdrvr_unlink(FAR struct inode *inode) * where N is the minor number * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/i2s/i2schar.c b/drivers/i2s/i2schar.c index e938ccfd37a..130149a8a7c 100644 --- a/drivers/i2s/i2schar.c +++ b/drivers/i2s/i2schar.c @@ -609,7 +609,7 @@ static int i2schar_ioctl(FAR struct file *filep, int cmd, unsigned long arg) * registers as /dev/i2scharN where N is the minor number * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/i3c/i3c_driver.c b/drivers/i3c/i3c_driver.c index 790e02f8f0b..4cc6d171e3c 100644 --- a/drivers/i3c/i3c_driver.c +++ b/drivers/i3c/i3c_driver.c @@ -357,7 +357,7 @@ static int i3cdrvr_unlink(FAR struct inode *inode) * where N is the minor number * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index f1cf5d32d1d..dfc73eafd43 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -2171,7 +2171,7 @@ void i3c_master_detach_i2c_dev(FAR struct i3c_master_controller *master, * -ENOTSUP if set to true since secondary masters are not yet supported * * return: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/motor/motor.c b/drivers/motor/motor.c index 3079d113429..849d3272648 100644 --- a/drivers/motor/motor.c +++ b/drivers/motor/motor.c @@ -535,7 +535,7 @@ errout: * as the driver persists. * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/motor/stepper.c b/drivers/motor/stepper.c index 91be912189d..d9f3b8cd8d2 100644 --- a/drivers/motor/stepper.c +++ b/drivers/motor/stepper.c @@ -303,7 +303,7 @@ static int stepper_ioctl(FAR struct file *filep, int cmd, unsigned long arg) * as long as the driver persists. * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/rc/lirc_dev.c b/drivers/rc/lirc_dev.c index 85fc1b07ceb..fc605521191 100644 --- a/drivers/rc/lirc_dev.c +++ b/drivers/rc/lirc_dev.c @@ -766,7 +766,7 @@ static ssize_t lirc_read(FAR struct file *filep, FAR char *buffer, * devno already exists, -EEXIST will be returned. * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/sensors/gnss_uorb.c b/drivers/sensors/gnss_uorb.c index ff9b5cd2395..d94b389e11b 100644 --- a/drivers/sensors/gnss_uorb.c +++ b/drivers/sensors/gnss_uorb.c @@ -747,7 +747,7 @@ static void gnss_push_event(FAR void *priv, FAR const void *data, * count - The array size of nbuffer. * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/sensors/sensor.c b/drivers/sensors/sensor.c index cb4b443803b..833c3dd1df1 100644 --- a/drivers/sensors/sensor.c +++ b/drivers/sensors/sensor.c @@ -1376,7 +1376,7 @@ void sensor_remap_vector_raw16(FAR const int16_t *in, FAR int16_t *out, * devno already exists, -EEXIST will be returned. * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ @@ -1422,7 +1422,7 @@ int sensor_register(FAR struct sensor_lowerhalf_s *lower, int devno) * esize - The element size of intermediate circular buffer. * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/spi/spi_driver.c b/drivers/spi/spi_driver.c index 91f5d20e3be..f74f59b04bc 100644 --- a/drivers/spi/spi_driver.c +++ b/drivers/spi/spi_driver.c @@ -344,7 +344,7 @@ static int spidrvr_unlink(FAR struct inode *inode) * where N is the minor number * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/timers/ptp_clock.c b/drivers/timers/ptp_clock.c index 8010dbb4dcc..beb749aec37 100644 --- a/drivers/timers/ptp_clock.c +++ b/drivers/timers/ptp_clock.c @@ -412,7 +412,7 @@ int ptp_clockid_to_filep(clockid_t clock_id, FAR struct file **filep) * devno - The user specifies number of device. ex: /dev/ptpX. * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/timers/ptp_clock_dummy.c b/drivers/timers/ptp_clock_dummy.c index fa5fe569769..4ee0513b215 100644 --- a/drivers/timers/ptp_clock_dummy.c +++ b/drivers/timers/ptp_clock_dummy.c @@ -181,7 +181,7 @@ static int ptp_clock_dummy_getres(FAR struct ptp_lowerhalf_s *lower, * devno - The user specifies number of device. ex: /dev/ptpX. * * Returned Value: - * OK if the driver was successfully initialize; A negated errno value is + * OK if the driver was successfully initialized; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/video/mipidsi/mipi_dsi.h b/drivers/video/mipidsi/mipi_dsi.h index b7db643701f..028885d6b21 100644 --- a/drivers/video/mipidsi/mipi_dsi.h +++ b/drivers/video/mipidsi/mipi_dsi.h @@ -58,7 +58,7 @@ extern "C" * host - An instance of the struct mipi_dsi_host * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ @@ -78,7 +78,7 @@ int mipi_dsi_host_driver_register(FAR struct mipi_dsi_host *host); * device - An instance of the struct mipi_dsi_device * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/video/mipidsi/mipi_dsi_device.c b/drivers/video/mipidsi/mipi_dsi_device.c index 01d4f47a2d4..b80b4b0db12 100644 --- a/drivers/video/mipidsi/mipi_dsi_device.c +++ b/drivers/video/mipidsi/mipi_dsi_device.c @@ -998,8 +998,8 @@ int mipi_dsi_dcs_get_display_brightness(FAR struct mipi_dsi_device *device, * channel - The channel used by dsi device * * Returned Value: - * struct mipi_dsi_device* if the driver was successfully register; NULL is - * returned on any failure. + * struct mipi_dsi_device* if the driver was successfully registered; + * NULL is returned on any failure. * ****************************************************************************/ diff --git a/drivers/video/mipidsi/mipi_dsi_device_driver.c b/drivers/video/mipidsi/mipi_dsi_device_driver.c index fa452927c89..3732b909195 100644 --- a/drivers/video/mipidsi/mipi_dsi_device_driver.c +++ b/drivers/video/mipidsi/mipi_dsi_device_driver.c @@ -196,7 +196,7 @@ static int dsi_dev_ioctl(FAR struct file *filep, int cmd, unsigned long arg) * device - An instance of the struct mipi_dsi_device * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/video/mipidsi/mipi_dsi_host.c b/drivers/video/mipidsi/mipi_dsi_host.c index 381e6466e80..02d78b4386d 100644 --- a/drivers/video/mipidsi/mipi_dsi_host.c +++ b/drivers/video/mipidsi/mipi_dsi_host.c @@ -94,7 +94,7 @@ static bool mipi_dsi_host_exist(int bus) * host - An instance of the dsi host * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/drivers/video/mipidsi/mipi_dsi_host_driver.c b/drivers/video/mipidsi/mipi_dsi_host_driver.c index 515d5b23376..9bc2b77bb22 100644 --- a/drivers/video/mipidsi/mipi_dsi_host_driver.c +++ b/drivers/video/mipidsi/mipi_dsi_host_driver.c @@ -173,7 +173,7 @@ static int dsi_host_ioctl(FAR struct file *filep, int cmd, unsigned long arg) * host - An instance of the struct mipi_dsi_host * * Returned Value: - * OK if the driver was successfully register; A negated errno value is + * OK if the driver was successfully registered; A negated errno value is * returned on any failure. * ****************************************************************************/