Re: [PATCH v7 2/3] counter: add GPIO-based counter driver

From: Uwe Kleine-König

Date: Tue Jul 14 2026 - 08:31:51 EST


Hello,

On Tue, Jul 14, 2026 at 10:17:08AM +0200, Wadim Mueller wrote:
> +#include <linux/mod_devicetable.h>
> [..]
> +#include <linux/platform_device.h>

Please don't use <linux/mod_devicetable.h>. of_device_id is also
provided by <linux/platform_device.h>, so you can just drop the former
include.

> +static const struct of_device_id gpio_counter_of_match[] = {
> + { .compatible = "gpio-counter" },
> + {}

{ } please.

> +};
> +MODULE_DEVICE_TABLE(of, gpio_counter_of_match);

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature