Fix using devRoot on Tegra platforms

Using `WithDevRoot` on Tegra platforms was incorrectly setting
`driverRoot`, fix it so that it correctly sets `devRoot`.

Signed-off-by: Jared Baur <jaredbaur@fastmail.com>
This commit is contained in:
Jared Baur 2023-12-13 19:56:02 -08:00
parent 9baed635d1
commit 508438a0c5
No known key found for this signature in database

View File

@ -119,9 +119,9 @@ func WithDriverRoot(driverRoot string) Option {
// WithDevRoot sets the /dev root.
// If this is unset, the driver root is assumed.
func WithDevRoot(driverRoot string) Option {
func WithDevRoot(devRoot string) Option {
return func(o *tegraOptions) {
o.driverRoot = driverRoot
o.devRoot = devRoot
}
}