staging: most: dim2: force fcnt=3 on Renesas GEN3
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Mon, 27 Sep 2021 15:58:05 +0000 (18:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Sep 2021 07:11:05 +0000 (09:11 +0200)
commit9b27a62d11be1afbccbefddaad39761c8212fd92
tree1a610a56af7145dd36042f1042bd3881a142f900
parentc090666ba9b583ee45ed268a5117eb022e1b191b
staging: most: dim2: force fcnt=3 on Renesas GEN3

Per Renesas datasheet, MLBC0 register's fcnt field in the embedded
dim2 module must be never set to value different from 3.

Enforce that, via an optional field in struct dim2_platform_data.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Link: https://lore.kernel.org/r/20210927155804.27877-1-nikita.yoush@cogentembedded.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/dim2/dim2.c