Weird error modprobe

Hi guys I was about to send my problems regarding a touchscreen not working. But I just manage to make it work!

So:
modinfo goodix
filename: /lib/modules/5.0.18-767.native/kernel/drivers/input/touchscreen/goodix.ko

modprobe Goodix
modprobe: FATAL: Module Goodix not found in directory /lib/modules/5.0.18-767.native

Mmmm different forlder!

cp /lib/modules/5.0.18-767.native/kernel/drivers/input/touchscreen/goodix.ko /lib/modules/5.0.18-767.native

modprobe goodix

And it works!

I am just a developer, I am familiar with linux (sometimes I think I am good at it xD) but this seems strange, doesnt it? Why was the .ko file not located where the command was trying to find it. And also why did it miss the cap. in the first letter?

Regards

modprobe failed because it’s case sensitive. modinfo also failed and just points you to the basedir where it starts searching. This works:

$ modinfo goodix
filename:       /lib/modules/5.0.15-754.native/kernel/drivers/input/touchscreen/goodix.ko
license:        GPL v2
description:    Goodix touchscreen driver
author:         Bastien Nocera <hadess@hadess.net>
author:         Benjamin Tissoires <benjamin.tissoires@gmail.com>
alias:          i2c:GDIX1001:00
alias:          acpi*:GDIX1002:*
alias:          acpi*:GDIX1001:*
depends:
retpoline:      Y
intree:         Y
name:           goodix
vermagic:       5.0.15-754.native SMP mod_unload
sig_id:         PKCS#7
signer:
sig_key:
sig_hashalgo:   unknown
signature:
$ sudo modprobe goodix
$ lsmod | grep goodix
goodix                 24576  0

This doesn’t:

$ modinfo Goodix
modinfo: ERROR: Module Goodix not found.
$ sudo modprobe Goodix
modprobe: FATAL: Module Goodix not found in directory /lib/modules/5.0.15-754.native

Yeap as @btwarden said it is a typo