net: ti: icssg-prueth: Stop hardcoding def_inc
authorMD Danish Anwar <danishanwar@ti.com>
Wed, 11 Sep 2024 08:16:00 +0000 (13:46 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Sep 2024 22:14:07 +0000 (15:14 -0700)
commit4ebe0599fc36ea3ff51e76e8554a2127e8126778
tree3a5bc29b063ce6dc49bf7ebce6d313471d67c4dd
parent8f88c072c2ba9201c1db27dec35f5015489776ec
net: ti: icssg-prueth: Stop hardcoding def_inc

The def_inc is stored in icss_iep structure. Currently default increment
(ns per clock tick) is hardcoded to 4 (Clock frequency being 250 MHz).
Change this to use the iep->def_inc variable as the iep structure is now
accessible to the driver files.

Reviewed-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Link: https://patch.msgid.link/20240911081603.2521729-3-danishanwar@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icssg_prueth.c