ENOENT means the i2c userspace device driver is missing

This commit is contained in:
Ondrej Jirman 2022-01-17 16:08:27 +01:00
parent 75b7cdaed2
commit f681795424
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ static int pogo_i2c_open(void)
int fd = open(path, O_RDWR); int fd = open(path, O_RDWR);
if (fd < 0 && errno == ENOENT) if (fd < 0 && errno == ENOENT)
printf("WARNING: The distribution you are using probably uses the kernel driver for pinephone keyboard, and is blocking access to the POGO I2C from userspace. You need to disable the driver to gain access.\n"); printf("WARNING: You may need to load the i2c-dev module (modprobe i2c-dev).\n");
syscall_error(fd < 0, "open(%s) failed", path); syscall_error(fd < 0, "open(%s) failed", path);
return fd; return fd;