Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33af02c7 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman
Browse files

staging: comedi: amplc_pci230: shrink struct pci230_board



The `ai_bits`, `ao_bits`, and `min_hwver` members of `struct
pci230_board` are only set to small, non-negative values, so make them
`unsigned char`.  The `have_dio` member is used as a boolean so change
it to a bitfield of type `bool`.

Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 867ae76d
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -454,10 +454,10 @@ enum {
struct pci230_board {
struct pci230_board {
	const char *name;
	const char *name;
	unsigned short id;
	unsigned short id;
	int ai_bits;
	unsigned char ai_bits;
	int ao_bits;
	unsigned char ao_bits;
	int have_dio;
	unsigned char min_hwver; /* Minimum hardware version supported. */
	unsigned int min_hwver;	/* Minimum hardware version supported. */
	bool have_dio:1;
};
};


static const struct pci230_board pci230_boards[] = {
static const struct pci230_board pci230_boards[] = {
@@ -466,7 +466,7 @@ static const struct pci230_board pci230_boards[] = {
		.id		= PCI_DEVICE_ID_PCI230,
		.id		= PCI_DEVICE_ID_PCI230,
		.ai_bits	= 16,
		.ai_bits	= 16,
		.ao_bits	= 12,
		.ao_bits	= 12,
		.have_dio	= 1,
		.have_dio	= true,
		.min_hwver	= 1,
		.min_hwver	= 1,
	},
	},
	{
	{
@@ -480,7 +480,7 @@ static const struct pci230_board pci230_boards[] = {
		.id		= PCI_DEVICE_ID_PCI230,
		.id		= PCI_DEVICE_ID_PCI230,
		.ai_bits	= 12,
		.ai_bits	= 12,
		.ao_bits	= 12,
		.ao_bits	= 12,
		.have_dio	= 1,
		.have_dio	= true,
	},
	},
	{
	{
		.name		= "pci260",
		.name		= "pci260",