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

Commit a54373ee authored by Jesper Nilsson's avatar Jesper Nilsson
Browse files

[CRISv32] Remove warning in io.h



Variable flags need to be unsigned.

Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 2515ddc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ extern struct crisv32_iopin crisv32_led_net1_red;

static inline void crisv32_io_set(struct crisv32_iopin *iopin, int val)
{
	long flags;
	unsigned long flags;
	spin_lock_irqsave(&iopin->port->lock, flags);

	if (val)
@@ -57,7 +57,7 @@ static inline void crisv32_io_set(struct crisv32_iopin *iopin, int val)
static inline void crisv32_io_set_dir(struct crisv32_iopin* iopin,
			       enum crisv32_io_dir dir)
{
	long flags;
	unsigned long flags;
	spin_lock_irqsave(&iopin->port->lock, flags);

	if (dir == crisv32_io_dir_in)