Commit 82940064 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Dmitry Torokhov
Browse files

Input: gpio_decoder - make use of the macros from bits.h

parent 4eec8772
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ static int gpio_decoder_probe(struct platform_device *pdev)
		return dev_err_probe(dev, -EINVAL, "too many gpios found\n");

	if (device_property_read_u32(dev, "decoder-max-value", &max))
		max = (1U << decoder->input_gpios->ndescs) - 1;
		max = BIT(decoder->input_gpios->ndescs) - 1;

	input = devm_input_allocate_device(dev);
	if (!input)