core: move the chip-related code to the top of core.c
core: move the chip-related code to the top of core.c

Just as with the public header - move the chip code above the line
definitions.

Signed-off-by: Bartosz Golaszewski <108de5fbc428215dc26df4468b48691526611148@gmail.com>

brgl/libgpiod,brgl/libgpiod,brgl/libgpiod,brgl/libgpiod