About mpu9250 mag reading

I have a question about magnetometer readings.
According to the datasheet of MPU9250, the coordinate systems of mag and accel&gyro are different.
I am not sure whether the driver of 9250 or the attitude estimator (e.g. q estimator) has adapted to such difference.
Thank you very much.