]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
i2c: expand minor range when registering chrdev region
authorChengguang Xu <cgxu519@gmx.com>
Tue, 12 Feb 2019 06:06:57 +0000 (14:06 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 15 Feb 2019 08:53:34 +0000 (09:53 +0100)
commit8a6d508a8055ea2ef8477e649662287e57727f54
tree84889e3683f688f84d0861e4cdf79bc23eea94e4
parent2e57b7cebb988a27cee44626ae91424e73823bfb
i2c: expand minor range when registering chrdev region

Actually, total amount of available minor number for a single major is
MINORMASK + 1. So expand minor range when registering chrdev region.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
[wsa: fixed typo in commit message]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-dev.c