From: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx> Sakari commented that the sink/source pad indexes are not the same as the OF port numbers. We define them such that they match, so that they can be used interchangably - but of course they are not the 'same thing'. Document this in a comment at the definition of the pad sizings. Signed-off-by: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx> --- drivers/media/i2c/max9286.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c index e0c637d4a7de..6d63b4ca0a42 100644 --- a/drivers/media/i2c/max9286.c +++ b/drivers/media/i2c/max9286.c @@ -125,6 +125,10 @@ #define MAX9286_AUTOMASKEN BIT(4) #define MAX9286_MASKLINK(n) ((n) << 0) +/* + * The sink and source pads are created to match the OF graph port numbers so + * that their indexes can be used interchangeably. + */ #define MAX9286_NUM_GMSL 4 #define MAX9286_N_SINKS 4 #define MAX9286_N_PADS 5 -- 2.26.0