drivers: Fix comment typos — 'register' → 'registered' across drivers.

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 <hanzjian@zepp.com>
This commit is contained in:
hanzj 2026-05-28 15:57:27 +08:00 committed by Xiang Xiao
parent 90219df0ec
commit 7679bba75e
17 changed files with 20 additions and 20 deletions

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/

View file

@ -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.
*
****************************************************************************/