Garbage collect the no-longer-necessary MAX_IIC_DATA_SIZE (there is not a

buffer allocated at that fixed size anymore).
This commit is contained in:
Ian Lepore 2019-08-10 17:28:14 +00:00
parent 3f24d465fd
commit 0ad8b8edc4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350840

View File

@ -56,9 +56,6 @@ __FBSDID("$FreeBSD$");
#include "iicbus_if.h"
#define MAX_IIC_DATA_SIZE 2
struct am335x_pmic_softc {
device_t sc_dev;
uint32_t sc_addr;
@ -85,9 +82,6 @@ am335x_pmic_read(device_t dev, uint8_t addr, uint8_t *data, uint8_t size)
static int
am335x_pmic_write(device_t dev, uint8_t address, uint8_t *data, uint8_t size)
{
if (size > MAX_IIC_DATA_SIZE)
return (ENOMEM);
return (iicdev_writeto(dev, address, data, size, IIC_INTRWAIT));
}