Trivial changes from review of last PR

This commit is contained in:
Gregory Nutt 2019-04-28 06:46:48 -06:00
parent e1e1e0a8db
commit df5a8d09eb
4 changed files with 6 additions and 4 deletions

View File

@ -210,6 +210,7 @@ void stm32_usbinitialize(void);
* *
* Description: * Description:
* Initialize I2C-based LSM6DSL. * Initialize I2C-based LSM6DSL.
*
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_SENSORS_LSM303AGR #ifdef CONFIG_SENSORS_LSM303AGR
@ -221,6 +222,7 @@ int stm32_lsm6dsl_initialize(char *devpath);
* *
* Description: * Description:
* Initialize I2C-based LSM303AGR. * Initialize I2C-based LSM303AGR.
*
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_SENSORS_LSM6DSL #ifdef CONFIG_SENSORS_LSM6DSL

View File

@ -74,7 +74,6 @@
int stm32_pca9635_initialize(void) int stm32_pca9635_initialize(void)
{ {
FAR struct i2c_master_s *i2c; FAR struct i2c_master_s *i2c;
int ret; int ret;
@ -83,7 +82,7 @@ int stm32_pca9635_initialize(void)
i2c = stm32_i2cbus_initialize(PCA9635_I2CBUS); i2c = stm32_i2cbus_initialize(PCA9635_I2CBUS);
if (!i2c) if (!i2c)
{ {
_err("ERROR: Failed to initialize I2C%d\n", PCA9635_I2CBUS); i2cerr("ERROR: Failed to initialize I2C%d\n", PCA9635_I2CBUS);
return -1; return -1;
} }
@ -91,7 +90,7 @@ int stm32_pca9635_initialize(void)
if (ret < 0) if (ret < 0)
{ {
snerr("ERROR: Failed to register PCA9635 driver: %d\n", ret); snerr("ERROR: Failed to register PCA9635 driver: %d\n", ret);
return ret; return ret;
} }
return OK; return OK;

View File

@ -52,6 +52,7 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
#ifndef CONFIG_LCD_MAXPOWER #ifndef CONFIG_LCD_MAXPOWER

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* config/stm32f103-minimum/src/stm32_ssd1306.c * config/stm32f103-minimum/src/stm32_ssd1306.c
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>