drivers/sensors/max31855.c: Appease nxstyle
This commit is contained in:
parent
a4d37f7883
commit
6a9a3d05d8
|
@ -195,7 +195,8 @@ static ssize_t max31855_read(FAR struct file *filep, FAR char *buffer,
|
||||||
|
|
||||||
if (buflen != 2)
|
if (buflen != 2)
|
||||||
{
|
{
|
||||||
snerr("ERROR: You can't read something other than 16 bits (2 bytes)\n");
|
snerr("ERROR: You can't read something other than 16 bits "
|
||||||
|
"(2 bytes)\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,7 +321,8 @@ int max31855_register(FAR const char *devpath, FAR struct spi_dev_s *spi,
|
||||||
|
|
||||||
/* Initialize the MAX31855 device structure */
|
/* Initialize the MAX31855 device structure */
|
||||||
|
|
||||||
priv = (FAR struct max31855_dev_s *)kmm_malloc(sizeof(struct max31855_dev_s));
|
priv = (FAR struct max31855_dev_s *)
|
||||||
|
kmm_malloc(sizeof(struct max31855_dev_s));
|
||||||
if (priv == NULL)
|
if (priv == NULL)
|
||||||
{
|
{
|
||||||
snerr("ERROR: Failed to allocate instance\n");
|
snerr("ERROR: Failed to allocate instance\n");
|
||||||
|
|
Loading…
Reference in New Issue